diff options
author | lulalala <mark@goodlife.tw> | 2012-08-07 11:50:41 +0800 |
---|---|---|
committer | lulalala <mark@goodlife.tw> | 2012-08-07 11:50:41 +0800 |
commit | 694c227314e60c57bcad3f78a61df6cbc46ce1c7 (patch) | |
tree | f541f51ea2e84ded06219d2646accc7d631b9853 /guides | |
parent | 32df882f42bc0e6f62fe2792f0e3a148fdff777b (diff) | |
download | rails-694c227314e60c57bcad3f78a61df6cbc46ce1c7.tar.gz rails-694c227314e60c57bcad3f78a61df6cbc46ce1c7.tar.bz2 rails-694c227314e60c57bcad3f78a61df6cbc46ce1c7.zip |
For adding non css/js files to precompile array
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/asset_pipeline.textile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/asset_pipeline.textile b/guides/source/asset_pipeline.textile index 42b5d102e7..d0d1ab137c 100644 --- a/guides/source/asset_pipeline.textile +++ b/guides/source/asset_pipeline.textile @@ -443,6 +443,8 @@ If you have other manifests or individual stylesheets and JavaScript files to in config.assets.precompile += ['admin.js', 'admin.css', 'swfObject.js'] </erb> +NOTE. Always specify an expected compiled filename that ends with js or css, even if you want to add Sass or CoffeeScript files to the precompile array. + The rake task also generates a +manifest.yml+ that contains a list with all your assets and their respective fingerprints. This is used by the Rails helper methods to avoid handing the mapping requests back to Sprockets. A typical manifest file looks like: <plain> |