Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
gabriel siqueira
7,405 PointsRuby on Rails /statuses error
When I get to the /statuses step I get an error that says. ExecJS::RuntimeError in Statuses#index
Any idea?
1 Answer

Matthew Ludwigs
11,197 PointsI ran into that before as well. It was fixed by installing node.js, but I was running Linux in that situation. However, it seems that making sure that "therubyracer" gem is in your Gemfile is another answer, and is what my projects in OS X uses. Go check your Gemfile to see if the ruby racer is in there.
If it is not, navigate to your app root and type gem install therubyracer in your command line. Then go to your Gemfile and be sure that: gem "therubyracer", platforms: :ruby, is in the file, if it is not then type it into your Gemfile. Then run bundle install in your command line at the app root. As far as I know it should work, but I have never had to manually put the ruby racer in my Gemfile.
Quick note, I am not sure if platforms: :ruby is necessary, but that is just how it is written in my Gemfile for my projects that use it.