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
|
|
|
|
2013-01-06 00:42:46 -05:00
|
|
|
creates a Notifications mailer class, views, and test:
|
2010-01-18 18:49:04 -05:00
|
|
|
Mailer: app/mailers/notifications.rb
|
2013-01-06 00:42:46 -05:00
|
|
|
Views: app/views/notifications/signup.text.erb [...]
|
2012-10-08 00:59:42 -04:00
|
|
|
Test: test/mailers/notifications_test.rb
|
2011-03-06 00:23:44 -05:00
|
|
|
|