diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-08-24 21:42:19 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-08-25 09:49:18 -0500 |
commit | 3731a0f97ba37224984ec81aaf56b6b1013a85e1 (patch) | |
tree | 01913261ff6e2fd434d363c0c12efeb489dac588 | |
parent | 9a68ea9643708e96ddec208e59eb1c966791b64d (diff) | |
download | rails-3731a0f97ba37224984ec81aaf56b6b1013a85e1.tar.gz rails-3731a0f97ba37224984ec81aaf56b6b1013a85e1.tar.bz2 rails-3731a0f97ba37224984ec81aaf56b6b1013a85e1.zip |
Update Debugging Assets section of Assets Pipeline guide
-rw-r--r-- | railties/guides/source/asset_pipeline.textile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index 012149c40e..4fbdda4c07 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -247,7 +247,14 @@ When the +debug_assets+ parameter is set, this line is expanded out into three s This allows the individual parts of an asset to be rendered and debugged separately. -NOTE. Assets debugging is turned on by default in development and test environments. +Additionally if the +config.assets.debug+ is set to true you can debug your assets passing the +:debug+ option to the assets tags: + +<erb> +<%= javascript_include_tag :application, :debug => true %> +</erb> + + +NOTE. Assets debugging is turned on by default in development and test environments. You can set +config.assets.allow_debugging+ to false to turn it off. h3. In Production |