Skip to content

Commit

Permalink
Fix documentation for mailer generator
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Sep 2, 2005
1 parent 69d6620 commit d54aea2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ 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 and should
not be suffixed with 'Mailer'.
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 NotificationsMailer:
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
Expand Down

0 comments on commit d54aea2

Please sign in to comment.