2009-06-25 06:57:58 -04:00
|
|
|
Description:
|
|
|
|
Stubs out a new mailer and its views. Pass the mailer name, either
|
|
|
|
CamelCased or under_scored, and an optional list of emails as arguments.
|
|
|
|
|
2010-01-27 19:00:38 -05:00
|
|
|
This generates a mailer class in app/mailers and invokes your template
|
2009-06-26 12:54:58 -04:00
|
|
|
engine and test framework generators.
|
2009-06-25 06:57:58 -04:00
|
|
|
|
|
|
|
Example:
|
2010-02-06 11:18:10 -05:00
|
|
|
`rails generate mailer Notifications signup forgot_password invoice`
|
2009-06-25 06:57:58 -04:00
|
|
|
|
|
|
|
creates a Notifications mailer class, views, test, and fixtures:
|
2010-01-18 18:49:04 -05:00
|
|
|
Mailer: app/mailers/notifications.rb
|
2009-06-25 06:57:58 -04:00
|
|
|
Views: app/views/notifications/signup.erb [...]
|
2010-01-18 18:49:04 -05:00
|
|
|
Test: test/functional/notifications_test.rb
|
2009-06-25 06:57:58 -04:00
|
|
|
Fixtures: test/fixtures/notifications/signup [...]
|