Chapter 10. Account Activation and Password Reset
In Chapter 9, we finished making a basic Users resource (filling in all the standard REST actions from Table 7.1), together with a flexible authentication and authorization system. In this chapter, we’ll put the finishing touches on this system by adding two closely related features: account activation (which verifies a new user’s email address) and password reset (for users who forget their passwords). Each of these two features will involve creating a new resource, thereby giving us a chance to see further examples of controllers, routing, and database migrations. In the process, we’ll also have a chance to learn how to send email in Rails, both in development and in production. Finally, the ...
Get Ruby on Rails Tutorial: Learn Web Development with Rails, Third 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.