aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/assets/USAGE
blob: d2e5ed4482616286587b807ba9d5dfa7f4258ded (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 an asset within a folder, specify the asset's 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