aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/rails/helper/USAGE
blob: e74d4b642541046f3f6a93c38f6c9e0abc70ce32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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