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:
|
2014-12-17 13:18:22 -05:00
|
|
|
Mailer: app/mailers/notifications_mailer.rb
|
2015-01-07 18:55:07 -05:00
|
|
|
Views: app/views/notifications_mailer/signup.text.erb [...]
|
|
|
|
Test: test/mailers/notifications_mailer_test.rb
|
2011-03-06 00:23:44 -05:00
|
|
|
|