aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators/components/mailer/USAGE
blob: a036998a1a002042db94483f5a4a1023be45ccfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description:
    The mailer generator creates stubs for a new mailer and its views.

    The generator takes a mailer name and a list of views as arguments.
    The mailer name may be given in CamelCase or under_score.

    The generator creates a mailer class in app/models with view templates
    in app/views/mailer_name, and a test suite with fixtures in test/unit.

Example:
    ./script/generate mailer Notifications signup forgot_password invoice

    This will create a Notifications mailer class:
        Mailer:     app/models/notifications.rb
        Views:      app/views/notifications/signup.rhtml [...]
        Test:       test/unit/credit_card_controller_test.rb
        Fixtures:   test/fixtures/notifications/signup [...]