It also adds the ability to write assets in other languages like CoffeeScript, Sass and ERB.
What The Asset Pipeline Does
By combining all your css and js assets into single files you can reduce load time by decreasing the number of requests a browser needs to make.
Minification and Compression
In addition to combining your assets, the pipeline will remove all the extra line breaks and whitespace. The helps in load time and also prevents others from stealing your scripts.
To prevent old cached versions of images and static files being loaded, the asset pipeline adds a serial number to the end of files. For example, global.css would be transformed to something like:
How To Use The Asset Pipeline
Files to include in the pipeline can be placed in three places: app/assets, lib/assets or vendor/assets. When calling these assets in your views, you no longer have to worry about the full file path – you can simply call them by the file name. For example:
1 2 3 4