mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Updates ActionMailer Base summary and fixes space in code example.
This commit is contained in:
parent
9c748f3961
commit
c291195a6d
1 changed files with 4 additions and 4 deletions
|
@ -14,15 +14,15 @@ module ActionMailer #:nodoc:
|
|||
#
|
||||
# $ rails generate mailer Notifier
|
||||
#
|
||||
# The generated model inherits from <tt>ActionMailer::Base</tt>. Emails are defined by creating methods
|
||||
# within the model which are then used to set variables to be used in the mail template, to
|
||||
# change options on the mail, or to add attachments.
|
||||
# The generated model inherits from <tt>ActionMailer::Base</tt>. 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 <tt>:from</tt> address, and attachments.
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
# class Notifier < ActionMailer::Base
|
||||
# default :from => 'no-reply@example.com',
|
||||
# :return_path => 'system@example.com'
|
||||
# :return_path => 'system@example.com'
|
||||
#
|
||||
# def welcome(recipient)
|
||||
# @account = recipient
|
||||
|
|
Loading…
Reference in a new issue