JavaScript Runtime error

When I tried to start the server i came across the following error:

/.rvm/gems/ruby-1.9.3-p392/gems/execjs-1.3.0/lib/execjs/runtimes.rb:50:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)


adding the rubyracer gem to the Gemfile solved the problem