Problem encountered
description:
.../.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.13/lib/execjs/runtimes.rb:47:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
Solution:
add the following code in the Gemfile
gem 'execjs'
gem 'therubyracer'
and then run `bundle install` in shell, this problem will solved
more about this problem see the links: http://stackoverflow.com/questions/6282307/rails-3-1-execjs-and-could-not-find-a-javascript-runtime