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

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -