Rails 3.1 Uglifier gem not working
I'm trying to get uglifier working for JavaScript compression working on l开发者_JAVA百科ocalhost dev environment. I have looked at the rails guide and couple of other posts and all seem to point to the config setting:
config.assets.js_compressor = :uglifier
config.assets.compress=true
I've tried these settings and a couple of variations and nothing seems to work. After viewing my gem list, these are all installed and each one is required in the Gemfile. I'm not really sure what else to try.
Could it possibly be my config settings?
Make sure you have a javascript runtime, e.g.
rubytheracer (deprecated)
node
execjs
This was new in rails 3.1
精彩评论