How can I completely disable CoffeeScript in a Rails 3.1 app?
Comment out gem “coffee-script” in your Gemfile Use .js instead of .js.coffee for your javascript files
Comment out gem “coffee-script” in your Gemfile Use .js instead of .js.coffee for your javascript files
config.assets.precompile accepts regular expressions and wildcard matching – so to ensure all js files get compiled, without specifying each by name, something like this should do the trick: config.assets.precompile << ‘*.js’
Rails now does this by default 🙂 Message.where(user_id: Profile.select(“user_id”).where(gender: ‘m’)) will produce the following SQL SELECT “messages”.* FROM “messages” WHERE “messages”.”user_id” IN (SELECT user_id FROM “profiles” WHERE “profiles”.”gender” = ‘m’) (the version number that “now” refers to is most likely 3.2)
Ubuntu Users I’m on Ubuntu 11.04 and had similar issues. Installing Node.js fixed it. As of Ubuntu 13.04 x64 you only need to run: sudo apt-get install nodejs This will solve the problem. CentOS/RedHat Users sudo yum install nodejs