Chapter 6: Helpers, Forms, and Layouts

In the last chapter, we put in place some basic architecture for our application—a model, a view, and a controller—and were able to display a link to a random story in the database. The foundation of our application is sound, but users are unable to really interact with it yet.

In this chapter, we'll use helpers to implement the basic functionality for our application: the capability that allows users to submit stories to the site.

We'll also start to build our test suite, and create some functional tests to confirm that the submission form is working as intended. We'll expand on this suite of tests in the coming chapters.

Calling upon Our Trusty Helpers

And I'm not talking about Santa's little helpers. ...

Get Rails: Novice to Ninja, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.