diff options
author | Richard Hulse <richard.hulse@radionz.co.nz> | 2011-07-17 20:12:30 +1200 |
---|---|---|
committer | Richard Hulse <richard.hulse@radionz.co.nz> | 2011-07-17 20:22:25 +1200 |
commit | 602bac19e75347d642c7f5b86ff46dae2c32c4e5 (patch) | |
tree | 5e5d0ef31e79313420453393206c79178ecdf515 | |
parent | 10c2132cbd17eab8126d736958fecf8668ca3e95 (diff) | |
download | rails-602bac19e75347d642c7f5b86ff46dae2c32c4e5.tar.gz rails-602bac19e75347d642c7f5b86ff46dae2c32c4e5.tar.bz2 rails-602bac19e75347d642c7f5b86ff46dae2c32c4e5.zip |
[configuring] add doc for missing assets attribute
.compress turns on the compression using the types
specified in other config options
-rw-r--r-- | railties/guides/source/configuring.textile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index 8e6010ff79..7ed958be08 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -120,10 +120,12 @@ h4. Configuring Assets Rails 3.1, by default, is set up to use the +sprockets+ gem to manage assets within an application. This gem concatenates and compresses assets in order to make serving them much less painful. -* +config.assets.css_compressor+ defines the CSS compressor to use. Only supported value at the moment is +:yui+, which uses the +yui-compressor+ gem. - * +config.assets.enabled+ a flag that controls whether the asset pipeline is enabled. It is explicitly initialized in +config/application.rb+. +* +config.assets.compress+ a flag that enables the compression of compiled assets. It is explicitly set to true in +config/production.rb+. + +* +config.assets.css_compressor+ defines the CSS compressor to use. Only supported value at the moment is +:yui+, which uses the +yui-compressor+ gem. + * +config.assets.js_compressor+ defines the JavaScript compressor to use. Possible values are +:closure+, +:uglifier+ and +:yui+ which require the use of the +closure-compiler+, +uglifier+ or +yui-compressor+ gems respectively. * +config.assets.paths+ contains the paths which are used to look for assets. Appending paths to this configuration option will cause those paths to be used in the search for assets. |