diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-26 09:53:53 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-26 11:59:13 +0200 |
commit | e0843136405e26a13405567d65fe7e5cc40dfcff (patch) | |
tree | 9453e6afcde311258800734da87892f3fd5f8678 /railties/lib/generators/rails/helper/USAGE | |
parent | da1baeab4a681b63b29f4a3c7222d660306551d9 (diff) | |
download | rails-e0843136405e26a13405567d65fe7e5cc40dfcff.tar.gz rails-e0843136405e26a13405567d65fe7e5cc40dfcff.tar.bz2 rails-e0843136405e26a13405567d65fe7e5cc40dfcff.zip |
Added HelperGenerator.
Diffstat (limited to 'railties/lib/generators/rails/helper/USAGE')
-rw-r--r-- | railties/lib/generators/rails/helper/USAGE | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/railties/lib/generators/rails/helper/USAGE b/railties/lib/generators/rails/helper/USAGE new file mode 100644 index 0000000000..e74d4b6425 --- /dev/null +++ b/railties/lib/generators/rails/helper/USAGE @@ -0,0 +1,24 @@ +Description: + 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. + +Example: + `./script/generate helper CreditCard` + + Credit card helper. + 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 + |