1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/generators/rails/helper/USAGE

17 lines
509 B
Text

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 the configured
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