diff options
author | Richard Hulse <richard.hulse@radionz.co.nz> | 2011-08-05 20:46:20 +1200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-13 16:22:31 -0700 |
commit | bc49d6d1eb075900657b0f94d03c51d18a95a54d (patch) | |
tree | 9337d57e69ab1b12d751f944f20b1b5ccf958799 /railties/guides/source | |
parent | b905f8c96326c86caafc20bec7e3722cf4813d2c (diff) | |
download | rails-bc49d6d1eb075900657b0f94d03c51d18a95a54d.tar.gz rails-bc49d6d1eb075900657b0f94d03c51d18a95a54d.tar.bz2 rails-bc49d6d1eb075900657b0f94d03c51d18a95a54d.zip |
[asset pipeline] fixed example
Changed << to += because we are _concatenating_
this new array to the end of config array, NOT
pushing this array in it.
Diffstat (limited to 'railties/guides/source')
-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 51cb332e38..13e28a25ba 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -297,7 +297,7 @@ The default matcher for compiling files will include +application.js+, +applicat If you have other manifests or individual stylesheets and JavaScript files to include, you can append them to the +precompile+ array: <erb> -config.assets.precompile << ['admin.js', 'admin.css', 'swfObject.js'] +config.assets.precompile += ['admin.js', 'admin.css', 'swfObject.js'] </erb> Precompiled assets exist on the filesystem and are served directly by your webserver. They do not have far-future headers by default, so to get the benefit of fingerprinting you'll have to update your server configuration to add them. |