diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-10-08 02:20:09 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-10-08 02:22:49 +0530 |
commit | d2db917841cacbdd6320460fd6fa3d07cd972139 (patch) | |
tree | 2875848dd568ef3b0328c632da98d0f9a781d0db /railties/guides | |
parent | 8a4239fc7e6669da9843e5aa28b5ba2a47f26b6f (diff) | |
download | rails-d2db917841cacbdd6320460fd6fa3d07cd972139.tar.gz rails-d2db917841cacbdd6320460fd6fa3d07cd972139.tar.bz2 rails-d2db917841cacbdd6320460fd6fa3d07cd972139.zip |
fix bad formatting in the assets guide
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/asset_pipeline.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index ef01cd32ac..df41c7a9e8 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -38,7 +38,7 @@ h4. Main Features The first feature of the pipeline is to concatenate assets. This is important in a production environment, as it reduces the number of requests that a browser must make to render a web page. -While Rails already has a feature to concatenate these types of assets -- by placing +:cache => true+ at the end of tags such as +javascript_include_tag+ and +stylesheet_link_tag+ --, it has a series of limitations. For example, it cannot generate the caches in advance, and it is not able to transparently include assets provided by third-party libraries. +While Rails already has a feature to concatenate these types of assets by placing +:cache => true+ at the end of tags such as +javascript_include_tag+ and +stylesheet_link_tag+, it has a series of limitations. For example, it cannot generate the caches in advance, and it is not able to transparently include assets provided by third-party libraries. The default behavior in Rails 3.1 and onward is to concatenate all files into one master file each for JS and CSS. However, you can separate files or groups of files if required (see below). In production, an MD5 fingerprint is inserted into each filename so that the file is cached by the web browser but can be invalidated if the fingerprint is altered. |