mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
require_tree is pretty simple
This commit is contained in:
parent
266b1bd9b4
commit
fe2482e50b
1 changed files with 2 additions and 2 deletions
|
@ -32,9 +32,9 @@ Sprockets, the rails tie that powers the asset pipeline, provides three directiv
|
|||
|
||||
The require directive loads a file with the supplied basename from the following paths: app/assets/*, lib/assets/*, vendor/assets/*, as well as any of your gem's asset files.
|
||||
|
||||
Require tree does...
|
||||
Using the +require_tree+ directive you can easily include an entire folder of assets. The paths must be relative, so begin them with either a forward slash or dots. For example to include a folder in the same directory I would do +require_tree ./folder_name+
|
||||
|
||||
Require self does...
|
||||
Require self does... something
|
||||
|
||||
h4. Stacking Preprocessors
|
||||
|
||||
|
|
Loading…
Reference in a new issue