execJs: ‘Could not find a JavaScript runtime’ but execjs AND therubyracer are in Gemfile

I’m getting this error: rake aborted! Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs, I have already spent more hours searching google then I am willing to admit. I believe this is an execJs bug. From all the posts, this is a very common issue with rails 3.1. A js runtime is now needed by … Read more

Using Rails 3.1, where do you put your “page specific” JavaScript code?

To my understanding, all of your JavaScript gets merged into 1 file. Rails does this by default when it adds //= require_tree . to the bottom of your application.js manifest file. This sounds like a real life-saver, but I am a little concerned about page-specific JavaScript code. Does this code get executed on every page? … Read more

ExecJS and could not find a JavaScript runtime

I’m trying to use the Mongoid / Devise Rails 3.1 template (Mongoid and Devise), and I keep getting an error stating ExecJS cannot find a JavaScript runtime. Fair enough when I didn’t have any installed, but I’ve tried installing Node.js, Mustang and the Ruby Racer, but nothing is working. I could not find a JavaScript … Read more