How to prevent sprocket code clashes Rails 3.1 -



How to prevent sprocket code clashes Rails 3.1 -

rails 3.1 nice , good, except decent sized application getting lots of code clashes because rails throwing scripts , serving them every page. there must way prevent page-specific code beingness bundled , served time?

the culprit require_tree . in app/assets/javascripts/application.js:

http://edgeguides.rubyonrails.org/asset_pipeline.html#manifest-files-and-directives

replace line 1 or more individual require statements.

ruby-on-rails-3

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -