blob: adebfd7e6f56fbec57878f780100602aac296d45 (
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 a 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
|