2011-03-06 02:25:56 -05:00
|
|
|
Description:
|
|
|
|
============
|
2011-12-23 00:03:25 -05:00
|
|
|
Stubs out a new mailer and its views. Passes the mailer name, either
|
2009-06-25 06:57:58 -04:00
|
|
|
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
|
|
|
|
2011-03-06 02:25:56 -05:00
|
|
|
Example:
|
|
|
|
========
|
|
|
|
rails generate mailer Notifications signup forgot_password invoice
|
2009-06-25 06:57:58 -04:00
|
|
|
|
2011-06-18 04:14:32 -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 [...]
|
2011-03-06 00:23:44 -05:00
|
|
|
|