Home
Ruby on Rails
Cheatsheets
ActionMailer Cheatsheet
ActionMailer is the Rails framework which handles email delivery. This comprehensive cheatsheet will help your email on its way.
Views & Templates
Like ActionController, each mailer class has a corresponding view directory in which each method of the class looks for a template with its own name. For example...
|
Mailer model
|
Class method
|
Corresponding template
|
|
Notifier
|
signup_notification
|
app/views/notifier/signup_notification.erb
|
|
Notifier
|
despatch_alert
|
app/views/notifier/despatch_alert.erb
|
|
MailingList
|
welcome_message
|
app/views/mailing_list/welcome_message.erb
|