diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-26 18:54:58 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-26 18:54:58 +0200 |
commit | 3a0619f1bbd44763a827f9f13bccecb597a855db (patch) | |
tree | d3cc7b0694409d08f103f9c40d9ab5dcd8a940d8 /railties/lib/generators/rails/controller | |
parent | 2d48f80a6b6420a05758bee300b200ee3802b094 (diff) | |
download | rails-3a0619f1bbd44763a827f9f13bccecb597a855db.tar.gz rails-3a0619f1bbd44763a827f9f13bccecb597a855db.tar.bz2 rails-3a0619f1bbd44763a827f9f13bccecb597a855db.zip |
Update some USAGE files.
Diffstat (limited to 'railties/lib/generators/rails/controller')
-rw-r--r-- | railties/lib/generators/rails/controller/USAGE | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/railties/lib/generators/rails/controller/USAGE b/railties/lib/generators/rails/controller/USAGE index 42d38bd745..b714d061d2 100644 --- a/railties/lib/generators/rails/controller/USAGE +++ b/railties/lib/generators/rails/controller/USAGE @@ -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 |