From 3236e15cb7a00f00e119ff8dd9cde36cb6d3d180 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 9 Dec 2004 15:54:22 +0000 Subject: 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 --- railties/generators/mailer/USAGE | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'railties/generators/mailer') 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 -- cgit v1.2.3