diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-01-13 20:05:42 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-01-13 20:05:42 -0500 |
commit | 4871433519901c024477a969563aa9d160d08590 (patch) | |
tree | 34b018e1f42030ab20b561dc28dc00cfbad19a99 /railties | |
parent | 3979812999023e3c11ade95ca5442374ab5f95b8 (diff) | |
download | rails-4871433519901c024477a969563aa9d160d08590.tar.gz rails-4871433519901c024477a969563aa9d160d08590.tar.bz2 rails-4871433519901c024477a969563aa9d160d08590.zip |
Mention how use config.assets.prefix to avoid conflicting with an existing "/assets" route
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/3_1_release_notes.textile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/railties/guides/source/3_1_release_notes.textile b/railties/guides/source/3_1_release_notes.textile index bfe6db4651..f88d8624ba 100644 --- a/railties/guides/source/3_1_release_notes.textile +++ b/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>. |