aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/assets/USAGE
blob: e219fdc7d735aae4e6026a79ca9dce2506a86908 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description:
    Stubs out new asset placeholders. Pass the asset name, either CamelCased
    or under_scored.

    To create assets within a folder, specify the assets name as a
    path like 'parent/name'.

    This generates a JavaScript stub in app/assets/javascripts and a stylesheet
    stub in app/assets/stylesheets.
    
    If CoffeeScript is available, JavaScripts will be generated with the .coffee extension.
    If Sass 3 is available, stylesheets will be generated with the .scss extension.

Example:
    `rails generate assets posts`

    Posts assets.
        Javascript:     app/assets/javascripts/posts.js
        Stylesheet:     app/assets/stylesheets/posts.css