aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/asset_pipeline.textile
diff options
context:
space:
mode:
authorSam Umbach <sam@thinkrelevance.com>2011-12-30 17:19:49 -0500
committerSam Umbach <sam@thinkrelevance.com>2011-12-30 17:23:19 -0500
commit8daa9f5da90a83ff196159fd34efb8115c12b68a (patch)
tree80e592325015736bb86acd2fd105516987d63b75 /railties/guides/source/asset_pipeline.textile
parentec2cf2499aac5992f09182b0d2353ebf0c733374 (diff)
downloadrails-8daa9f5da90a83ff196159fd34efb8115c12b68a.tar.gz
rails-8daa9f5da90a83ff196159fd34efb8115c12b68a.tar.bz2
rails-8daa9f5da90a83ff196159fd34efb8115c12b68a.zip
SCSS processor is provided by the sass gem
Diffstat (limited to 'railties/guides/source/asset_pipeline.textile')
-rw-r--r--railties/guides/source/asset_pipeline.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index f48f5afd54..759fba1258 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -253,7 +253,7 @@ h4. Preprocessing
The file extensions used on an asset determine what preprocessing is applied. When a controller or a scaffold is generated with the default Rails gemset, a CoffeeScript file and a SCSS file are generated in place of a regular JavaScript and CSS file. The example used before was a controller called "projects", which generated an +app/assets/javascripts/projects.js.coffee+ and an +app/assets/stylesheets/projects.css.scss+ file.
-When these files are requested, they are processed by the processors provided by the +coffee-script+ and +sass-rails+ gems and then sent back to the browser as JavaScript and CSS respectively.
+When these files are requested, they are processed by the processors provided by the +coffee-script+ and +sass+ gems and then sent back to the browser as JavaScript and CSS respectively.
Additional layers of preprocessing can be requested by adding other extensions, where each extension is processed in a right-to-left manner. These should be used in the order the processing should be applied. For example, a stylesheet called +app/assets/stylesheets/projects.css.scss.erb+ is first processed as ERB, then SCSS and finally served as CSS. The same applies to a JavaScript file -- +app/assets/javascripts/projects.js.coffee.erb+ is processed as ERB, CoffeeScript, and served as JavaScript.