rails--rails/railties/lib/generators/rails/helper/USAGE

18 lines
509 B
Plaintext
Raw Normal View History

2009-06-26 07:53:53 +00:00
Description:
2009-06-26 16:54:58 +00:00
Stubs out a new helper. Pass the helper name, either CamelCased
or under_scored.
2009-06-26 07:53:53 +00:00
To create a helper within a module, specify the helper name as a
path like 'parent_module/helper_name'.
2009-06-26 16:54:58 +00:00
This generates a helper class in app/helpers and invokes the configured
test framework.
2009-06-26 07:53:53 +00:00
Example:
`./script/generate helper CreditCard`
Credit card helper.
Helper: app/helpers/credit_card_helper.rb
Test: test/unit/helpers/credit_card_helper_test.rb