You are previewing Ruby on Rails™ 3 Tutorial: Learn Rails™ by Example.

Ruby on Rails™ 3 Tutorial: Learn Rails™ by Example

Cover of Ruby on Rails™ 3 Tutorial: Learn Rails™ by Example by Michael Hartl Published by Addison-Wesley Professional
O'Reilly logo

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 ...

The best content for your career. Discover unlimited learning on demand for around $1/day.