Class: UserMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- UserMailer
- Defined in:
- lib/generators/jinda/templates/app/mailers/user_mailer.rb
Instance Method Summary collapse
-
#password_reset(user) ⇒ Object
Subject can be set in your I18n file at config/locales/en.yml with the following lookup:.
Instance Method Details
#password_reset(user) ⇒ Object
Subject can be set in your I18n file at config/locales/en.yml with the following lookup:
en.user_mailer.password_reset.subject
8 9 10 11 12 13 |
# File 'lib/generators/jinda/templates/app/mailers/user_mailer.rb', line 8 def password_reset(user) @greeting = "Hi" @user = user mail :to => user.email, :subject => "Password Reset" end |