aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/asset_pipeline.textile
diff options
context:
space:
mode:
authorLeonard Garvey <lengarvey@gmail.com>2011-06-18 21:15:49 +1000
committerLeonard Garvey <lengarvey@gmail.com>2011-06-18 21:15:49 +1000
commitfb9bfc2430924bced50f4cc285374bfdeb83f685 (patch)
tree9421a14cbdc7eec7f9f45088e7d49190751aeb13 /railties/guides/source/asset_pipeline.textile
parent2fbb7504e2c2b0a95398d1ef0c97ea4a403d831d (diff)
downloadrails-fb9bfc2430924bced50f4cc285374bfdeb83f685.tar.gz
rails-fb9bfc2430924bced50f4cc285374bfdeb83f685.tar.bz2
rails-fb9bfc2430924bced50f4cc285374bfdeb83f685.zip
Fixed a typo in asset pipeline
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 1b444811a2..5af3dff41a 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -98,7 +98,7 @@ h4. Preprocessing
Based on the extensions of the assets, Sprockets will do preprocessing on the files. With the default gemset that comes with Rails, when a controller or a scaffold is generated, a CoffeeScript file and a SCSS file will be 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 a +app/assets/stylesheets/projects.css.scss+ file.
-When these files are requested, they will be processed by the processors provided by the +coffee-script+ and +sass-rails+ gems and then sent back to the browser as JavaScript and SCSS respectively.
+When these files are requested, they will be 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.
In addition to this single layer of pre-processing, we can also put on additional extensions to the end of the file in order for them to be processed using other languages first. For example, we could call our stylesheet +app/assets/stylesheets/projects.css.scss.erb+ it would first be processed as ERB, then SCSS and finally served as CSS. We could also do this with our JavaScript file, calling it +app/assets/javascripts/projects.js.coffee.erb+.
@@ -106,4 +106,4 @@ Keep in mind that the order of these pre-processors is important. For example, i
h4. Compressing Assets
-WIP: Compressed Assets in Rails are served ... how? \ No newline at end of file
+WIP: Compressed Assets in Rails are served ... how?