Amber
Mozilla Firefox Start Page. Adding User Authentication. Comments Goals In this lesson, we add user authentication so only logged-in users can access the page controller and modify the contents of the site.
Setup We begin with the code with which we ended Lesson 10. Class: ActionMailer. Action Mailer allows you to send email from your application using a mailer model and views.
To use Action Mailer, you need to create a mailer model. $ rails generate mailer Notifier The generated model inherits from ActionMailer::Base. A mailer model defines methods used to generate an email message. In these methods, you can setup variables to be used in the mailer views, options on the mail itself such as the :from address, and attachments.