aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-04-11 22:39:36 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-04-11 22:39:36 +0530
commit4fb6527e2c8d0c5dd670cc3d9a6184efc8055938 (patch)
tree409c9c5696eba2558b8d2fe995a31a2d03bd2359 /guides
parent02a5847d32a25d9da4084730e888955e7ce9e1db (diff)
downloadrails-4fb6527e2c8d0c5dd670cc3d9a6184efc8055938.tar.gz
rails-4fb6527e2c8d0c5dd670cc3d9a6184efc8055938.tar.bz2
rails-4fb6527e2c8d0c5dd670cc3d9a6184efc8055938.zip
Revert "add instructions for adding additional manifests"
This reverts commit f28f1d70b3f3dd9f694067f7cab2e717e302ee2b. Reason: This is already covered in this guide elsewhere.
Diffstat (limited to 'guides')
-rw-r--r--guides/source/asset_pipeline.textile6
1 files changed, 1 insertions, 5 deletions
diff --git a/guides/source/asset_pipeline.textile b/guides/source/asset_pipeline.textile
index a8d0ac3077..982c4aa096 100644
--- a/guides/source/asset_pipeline.textile
+++ b/guides/source/asset_pipeline.textile
@@ -290,11 +290,7 @@ In this example +require_self+ is used. This puts the CSS contained within the f
NOTE. If you want to use multiple Sass files, you should generally use the "Sass +@import+ rule":http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#import instead of these Sprockets directives. Using Sprockets directives all Sass files exist within their own scope, making variables or mixins only available within the document they were defined in.
-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. In order for the pipeline to know about the additional manifest, it has to be added to application.rb.
-
-<plain>
-config.assets.precompile += %w( admin.css )
-</plain>
+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.
The same remarks about ordering made above apply. In particular, you can specify individual files and they are compiled in the order specified. For example, you might concatenate three CSS files together this way: