javascript - How to not merge all js into one file in Rails 3.2? -


i use rails 3.2. using lot of js gems, , of them require called in specific order. in development automatically seperates different js files :

<link href="/assets/companies.css?body=1" media="all" rel="stylesheet" type="text/css" /> <link href="/assets/contacts.css?body=1" media="all" rel="stylesheet" type="text/css" /> <link href="/assets/fake_json.css?body=1" media="all" rel="stylesheet" type="text/css" /> 

but in production merges of files :

<script src="/assets/application-e30cf15d1afc4b59752074fa16cd83a3.js" type="text/javascript"></script> 

in specific case, not want or require rails me. tried cancel using config.assets.compress = false , config.assets.debug = true in production.rb file, has no effect after restarting server.

how enable "not merging" on production?

you can add following line production.rb

config.assets.compile = false 

check configuring rails guide other useful parameters.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -