Permalink
Browse files

Mention how use config.assets.prefix to avoid conflicting with an exi…

…sting "/assets" route
  • Loading branch information...
1 parent 98ac00c commit f407ec5f792c15bd0fd47f046f20e7ed36856bc7 @guilleiguaran guilleiguaran committed with vijaydev Jan 14, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 railties/guides/source/3_1_release_notes.textile
View
9 railties/guides/source/3_1_release_notes.textile
@@ -46,13 +46,20 @@ gem 'jquery-rails'
h5. config/application.rb
-The asset pipeline requires the following additions:
+* The asset pipeline requires the following additions:
<ruby>
config.assets.enabled = true
config.assets.version = '1.0'
</ruby>
+* If your application is using the "/assets" route for a resource you may want change the prefix used for assets to avoid conflicts:
+
+<ruby>
+# Defaults to '/assets'
+config.assets.prefix = '/asset-files'
+</ruby>
+
h5. config/environments/development.rb
* Remove the RJS setting <tt>config.action_view.debug_rjs = true</tt>.

0 comments on commit f407ec5

Please sign in to comment.