Saturday, May 5, 2012

Rails ExecJS::RuntimeError

(With the help of

If you’re riding Ruby on Rails V3.11 and get the error

get rails ExecJS::RintimeError

Then try installing the V8 Javascript interpreter into Ruby.
Just edit your Gemfile and add

gem 'therubyracer'

then execute the famous
bundle install

This has also several advantages, such like:
  • Evaluate Javascript from with in Ruby
  • Embed your Ruby objects into the Javascript world
  • Manipulate JavaScript objects and call JavaScript functions from Ruby
  • API compatible with the The Ruby Rhino

0 коммент.:

Post a Comment

Powered by Blogger.