Chapter 6. Modeling and Viewing Users, Part I

In Chapter 5, we ended with a stub page for creating new users (Section 5.3); over the course of the next three chapters, we’ll fulfill the promise implicit in this incipient signup page. The first critical step is to create a data model for users of our site, together with a way to store that data. Completing this task is the goal for this chapter and the next (Chapter 7), and we’ll give users the ability to sign up in Chapter 8. Once the sample application can create new users, we’ll let them sign in and sign out (Chapter 9), and in Chapter 10 (Section 10.2) we’ll learn how to protect pages from improper access.

Taken together, the material in Chapter 6 through Chapter 10 develops a full Rails ...

Get Ruby on Rails™ 3 Tutorial: Learn Rails™ by Example 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.