aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/asset_pipeline.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-10-07 22:20:29 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-10-07 22:20:29 +0530
commit4930f9d2a76c0b4a8f60efa72ade0b9cce3520b6 (patch)
treef1ed80653c6bcb3d89527e71f50b67799b6e4bd9 /railties/guides/source/asset_pipeline.textile
parent9312d217d6233710b291dab2d4edde483109e136 (diff)
parentcb244f4f70dbc22813e78e58f6a63392462417f7 (diff)
downloadrails-4930f9d2a76c0b4a8f60efa72ade0b9cce3520b6.tar.gz
rails-4930f9d2a76c0b4a8f60efa72ade0b9cce3520b6.tar.bz2
rails-4930f9d2a76c0b4a8f60efa72ade0b9cce3520b6.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/guides/source/asset_pipeline.textile')
-rw-r--r--railties/guides/source/asset_pipeline.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index f2eade6bc6..ef01cd32ac 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -120,7 +120,7 @@ All subdirectories that exist within these three locations are added to the sear
You can add additional (fully qualified) paths to the pipeline in +config/application.rb+. For example:
<ruby>
-config.assets.paths << "#{Rails.root}/app/assets/flash"
+config.assets.paths << Rails.root.join("app", "assets", "flash")
</ruby>
h4. Coding Links to Assets
@@ -232,7 +232,7 @@ There's also a default +app/assets/stylesheets/application.css+ file which conta
The directives that work in the JavaScript files also work in stylesheets, obviously including stylesheets rather than JavaScript files. The +require_tree+ directive here works the same way as the JavaScript one, requiring all stylesheets from the current directory.
-In this example +require_self+ is used. This puts the CSS contained within the file (if any) at the top of any other CSS in this file unless +require_self+ is specified after another +require+ directive.
+In this example +require_self+ is used. This puts the CSS contained within the file (if any) at the precise location of the +require_self+ call. If +require_self+ is called more than once, only the last call is respected.
You can have as many manifest files as you need. For example the +admin.css+ and +admin.js+ manifest could contain the JS and CSS files that are used for the admin section of an application.