aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2011-06-18 22:07:19 +1000
committerRyan Bigg <radarlistener@gmail.com>2011-06-26 15:41:11 +1000
commit1b089a083f7ef854b58edb81c759ad34e70943da (patch)
tree24a8260289dd5f09f41eab0181a0a9e46871e71a
parent532c294deaa495c227f0cc5181bc068d777a1f25 (diff)
downloadrails-1b089a083f7ef854b58edb81c759ad34e70943da.tar.gz
rails-1b089a083f7ef854b58edb81c759ad34e70943da.tar.bz2
rails-1b089a083f7ef854b58edb81c759ad34e70943da.zip
Refer to sprockets + jammit as libraries, not gems
-rw-r--r--railties/guides/source/asset_pipeline.textile6
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index de66876623..49901c4f3a 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -13,7 +13,9 @@ endprologue.
h3. What Is The Asset Pipeline?
-With Rails 3.1 comes a new feature known as the asset pipeline. The asset pipeline provides features that have usually been implemented by external gems, such as "Jammit":http://documentcloud.github.com/jammit and "Sprockets.":http://getsprockets.org These gems are popular for being able to serve concatenated or compressed versions of the assets of an application, such as Cascade Style Sheets (CSS) or JavaScript (JS) files so that the number of requests made to the server are reduced, making the page load faster. Rails 3.1 includes the Sprockets gem.
+With Rails 3.1 comes a new feature known as the asset pipeline. The asset pipeline provides features that have usually been implemented by external Ruby libraries, such as Jammit and Sprockets. These libraries would serve concatenated or compressed versions of the assets of an application, such as stylesheets or javascript files so that the number of requests made to the server are lessened, making the page load faster. Rails 3.1 includes the +sprockets-rails+ gem, which depends on the +sprockets+ gem, by default.
+
+By having this now as a core feature of Rails, all developers can benefit from the power of having their assets pre-processed, compressed and minified by one central library, Sprockets.
h3. How to Use the Asset Pipeline
@@ -103,4 +105,4 @@ To include your assets inside of a gem, simple package it in +lib/assets+ as you
h4. Making Your Library or Gem a Pre-Processor
"You should be able to register [your gems] on Tilt and Sprockets will find them." - Josh
-Tilt: https://github.com/rtomayko/tilt \ No newline at end of file
+Tilt: https://github.com/rtomayko/tilt