While deploying a custom Rails 3.1 application I came across the following error.
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
The fix was simple.
Add these gems to your application Gemfile
gem 'execjs'
gem 'therubyracer'
And run bundler.
$ bundle install
