Update some USAGE files.

This commit is contained in:
José Valim
2009-06-26 18:54:58 +02:00
parent 2d48f80a6b
commit 3a0619f1bb
6 changed files with 18 additions and 32 deletions

View File

@@ -5,9 +5,8 @@ Description:
To create a controller within a module, specify the controller name as a
path like 'parent_module/controller_name'.
This generates a controller class in app/controllers, view templates in
app/views/controller_name and then invokes the helper generator, the
current template engine and finally the test framework.
This generates a controller class in app/controllers and invokes helper,
template engine and test framework generators.
Example:
`./script/generate controller CreditCard open debit credit close`
@@ -18,13 +17,3 @@ Example:
Views: app/views/credit_card/debit.html.erb [...]
Helper: app/helpers/credit_card_helper.rb
Helper Test: test/unit/helpers/credit_card_helper_test.rb
Modules Example:
`./script/generate controller 'admin/credit_card' suspend late_fee`
Credit card admin controller with URLs /admin/credit_card/suspend.
Controller: app/controllers/admin/credit_card_controller.rb
Functional Test: test/functional/admin/credit_card_controller_test.rb
Views: app/views/admin/credit_card/debit.html.erb [...]
Helper: app/helpers/admin/credit_card_helper.rb
Helper Test: test/unit/helpers/admin/credit_card_helper_test.rb

View File

@@ -1,12 +1,12 @@
Description:
Stubs out a new helper. Pass the helper name, either
CamelCased or under_scored.
Stubs out a new helper. Pass the helper name, either CamelCased
or under_scored.
To create a helper within a module, specify the helper name as a
path like 'parent_module/helper_name'.
This generates a helper class in app/helpers and invokes your test
framework.
This generates a helper class in app/helpers and invokes the configured
test framework.
Example:
`./script/generate helper CreditCard`
@@ -15,10 +15,3 @@ Example:
Helper: app/helpers/credit_card_helper.rb
Test: test/unit/helpers/credit_card_helper_test.rb
Modules Example:
`./script/generate helper 'admin/credit_card'`
Credit card admin helper.
Helper: app/helpers/admin/credit_card_helper.rb
Test: test/unit/helpers/admin/credit_card_helper_test.rb

View File

@@ -1,7 +1,9 @@
Description:
Stubs out a new integration test. Pass the name of the test, either
CamelCased or under_scored, as an argument. The new test class is
generated in test/integration/testname_test.rb
CamelCased or under_scored, as an argument.
This generator invokes the current integration tool, which defaults to
TestUnit.
Example:
`./script/generate integration_test GeneralStories` creates a GeneralStories

View File

@@ -2,8 +2,8 @@ Description:
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.
This generates a mailer class in app/models, view templates in
app/views/mailer_name and then invokes your test framework.
This generates a mailer class in app/models and invokes your template
engine and test framework generators.
Example:
`./script/generate mailer Notifications signup forgot_password invoice`

View File

@@ -2,8 +2,8 @@ Description:
Stubs out a new observer. Pass the observer name, either CamelCased or
under_scored, as an argument.
The generator creates an observer class in app/models and a unit test in
the configured test framework.
The generator creates an observer class in app/models and invokes the
configured test framework.
Example:
`./script/generate observer Account`

View File

@@ -1,7 +1,9 @@
Description:
Stubs out a new performance test. Pass the name of the test, either
CamelCased or under_scored, as an argument. The new test class is
generated in test/performance/testname_test.rb
CamelCased or under_scored, as an argument.
This generator invokes the current performance tool, which defaults to
TestUnit.
Example:
`./script/generate performance_test GeneralStories` creates a GeneralStories