USAGE 682 B

123456789101112131415161718
  1. Description:
  2. ============
  3. Stubs out a new mailer and its views. Pass the mailer name, either
  4. CamelCased or under_scored, and an optional list of emails as arguments.
  5. This generates a mailer class in app/mailers and invokes your template
  6. engine and test framework generators.
  7. Example:
  8. ========
  9. rails generate mailer Notifications signup forgot_password invoice
  10. creates a Notifications mailer class, views, test, and fixtures:
  11. Mailer: app/mailers/notifications.rb
  12. Views: app/views/notifications/signup.erb [...]
  13. Test: test/functional/notifications_test.rb
  14. Fixtures: test/fixtures/notifications/signup [...]