ef27ca617e551bbb9ee9a87e660294b03a5a66c8
[feedcatcher.git] / vendor / rails / railties / lib / rails_generator / generators / components / helper / USAGE
1 Description:
2 Stubs out a new helper. Pass the helper name, either
3 CamelCased or under_scored.
4
5 To create a helper within a module, specify the helper name as a
6 path like 'parent_module/helper_name'.
7
8 This generates a helper class in app/helpers and a helper test
9 suite in test/unit/helpers.
10
11 Example:
12 `./script/generate helper CreditCard`
13
14 Credit card helper.
15 Helper: app/helpers/credit_card_helper.rb
16 Test: test/unit/helpers/credit_card_helper_test.rb
17
18 Modules Example:
19 `./script/generate helper 'admin/credit_card'`
20
21 Credit card admin helper.
22 Helper: app/helpers/admin/credit_card_helper.rb
23 Test: test/unit/helpers/admin/credit_card_helper_test.rb
24