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 ...
Get RailsSpace: Building a Social Networking Website with Ruby on Rails™ 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.