aboutsummaryrefslogtreecommitdiffstats
path: root/railties/generators/mailer
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-09 15:54:22 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-09 15:54:22 +0000
commit3236e15cb7a00f00e119ff8dd9cde36cb6d3d180 (patch)
tree010f37ba1566cd53cda05aec60e8da1ae35026a0 /railties/generators/mailer
parentc7589559dea75a735ccb74364b06d57f26f1db3d (diff)
downloadrails-3236e15cb7a00f00e119ff8dd9cde36cb6d3d180.tar.gz
rails-3236e15cb7a00f00e119ff8dd9cde36cb6d3d180.tar.bz2
rails-3236e15cb7a00f00e119ff8dd9cde36cb6d3d180.zip
Updated the usage documentation for the generator actions for their new home
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/generators/mailer')
-rw-r--r--railties/generators/mailer/USAGE20
1 files changed, 9 insertions, 11 deletions
diff --git a/railties/generators/mailer/USAGE b/railties/generators/mailer/USAGE
index b6f2bbd54b..8cfc7e59c9 100644
--- a/railties/generators/mailer/USAGE
+++ b/railties/generators/mailer/USAGE
@@ -1,23 +1,21 @@
-NAME
- new_mailer - create mailer and view stub files
+GENERATOR
+ mailer - create mailer and view stub files
SYNOPSIS
- new_mailer MailerName action [action ...]
+ generate mailer MailerName action [action ...]
DESCRIPTION
- The new_mailer generator takes the name of the new mailer class as the
+ The mailer generator takes the name of the new mailer class as the
first argument and a variable number of mail action names as subsequent
arguments.
- From the passed arguments, new_mailer generates a class file in
- app/models with a mail action for each of the mail action names passed.
- It then creates a mail test suite in test/unit with one stub test case
- and one stub fixture per mail action. Finally, it creates a template stub
- for each of the mail action names in app/views under a directory with the
- same name as the class.
+ Mailer generates a class file in app/models with action methods for each
+ of the mail action names passed, a test suite in test/unit with a stub
+ test case and fixture per action, and template stubs for each action in
+ app/views under a directory with the same name as the class.
EXAMPLE
- new_mailer Notifications signup forgot_password invoice
+ ./script/generate mailer Notifications signup forgot_password invoice
This will generate a Notifications class in
app/models/notifications.rb, a NotificationsTest in