From 20fa105c353331eebef0843afa3d71505f7475f5 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 29 May 2007 02:07:08 +0000 Subject: Wordsmith generator USAGEs. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../rails_generator/generators/components/mailer/USAGE | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'railties/lib/rails_generator/generators/components/mailer') diff --git a/railties/lib/rails_generator/generators/components/mailer/USAGE b/railties/lib/rails_generator/generators/components/mailer/USAGE index 8224a25190..61a649ed4d 100644 --- a/railties/lib/rails_generator/generators/components/mailer/USAGE +++ b/railties/lib/rails_generator/generators/components/mailer/USAGE @@ -1,18 +1,16 @@ Description: - The mailer generator creates stubs for a new mailer and its views. + Stubs out a new mailer and its views. Pass the mailer name, either + CamelCased or under_scored, and an optional list of emails as arguments. - 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. + This generates a mailer class in app/models, view templates in + app/views/mailer_name, a unit test in test/unit, and fixtures in + test/fixtures. Example: - ./script/generate mailer Notifications signup forgot_password invoice + `./script/generate mailer Notifications signup forgot_password invoice` - This will create a Notifications mailer class: + creates a Notifications mailer class, views, test, and fixtures: Mailer: app/models/notifications.rb Views: app/views/notifications/signup.erb [...] Test: test/unit/test/unit/notifications_test.rb Fixtures: test/fixtures/notifications/signup [...] - -- cgit v1.2.3