O'Reilly logo

RailsSpace: Building a Social Networking Website with Ruby on Rails™ by Aurelius Prochazka, Michael Hartl

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Updating user information

We’re nearly ready to start building the social networking aspects of RailsSpace, but there are a couple of loose ends to tie off before we leave the User model. In Chapter 4, we developed a registration page to create users for RailsSpace, each with a screen name, email address, and password. It’s time to give our users the ability to edit (some of) these attributes.

We’ll start by fleshing out the user hub (introduced in Section 4.3.4) with the basic user information. Then we’ll set up a form to edit the email address and password, and write the edit action to handle the input from the form. Finally, we’ll write tests for the new user information update functionality.

It’s important to note that we will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required