September 19, 2011
This post was originally published in the Rambling Labs Blog on September 19, 2011.
I upgraded to rails 3.1.0 and created a new ‘test_app’.
rails new test_app
Got into the directory. Everything was fine, until I tried to run:
It threw a weird error:
I googled that and found a stackoverflow question. So, two solutions for the issue: either*** install nodejs*** or include “gem ‘execjs’” and “gem ‘therubyracer’” in the Gemfile and run bundle install.
Pick your favorite one and continue to do awesome apps with rails!