On 14 January 2012 14:17, KUMUDINI PAWAR <[email protected]> wrote: > when i try to run the rails server after successfully creating a rails > application i get following error... > can you please suggest some solutions to fix this. > > > sward@master:~/work/myapp$ rails server > /usr/lib/ruby/gems/1.8/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)
It is a pity this is not covered in the Getting Started guide, though I would have thought Google might have helped you out. Add gem 'execjs' gem 'therubyracer' to Gemfile then run bundle install and try again. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

