~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/railties/lib/rails_generator/generators/components/mailer/USAGE

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description:
2
 
    Stubs out a new mailer and its views. Pass the mailer name, either
3
 
    CamelCased or under_scored, and an optional list of emails as arguments.
4
 
 
5
 
    This generates a mailer class in app/models, view templates in
6
 
    app/views/mailer_name, a unit test in test/unit, and fixtures in
7
 
    test/fixtures.
8
 
 
9
 
Example:
10
 
    `./script/generate mailer Notifications signup forgot_password invoice`
11
 
 
12
 
    creates a Notifications mailer class, views, test, and fixtures:
13
 
        Mailer:     app/models/notifications.rb
14
 
        Views:      app/views/notifications/signup.erb [...]
15
 
        Test:       test/unit/test/unit/notifications_test.rb
16
 
        Fixtures:   test/fixtures/notifications/signup [...]