Skip to content

Commit

Permalink
Mention how use config.assets.prefix to avoid conflicting with an exi…
Browse files Browse the repository at this point in the history
…sting "/assets" route
  • Loading branch information
guilleiguaran authored and vijaydev committed Jan 16, 2012
1 parent 98ac00c commit f407ec5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion railties/guides/source/3_1_release_notes.textile
Expand Up @@ -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>.
Expand Down

0 comments on commit f407ec5

Please sign in to comment.