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! While you're at it, check out some resources Treehouse students have shared here.

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


Chandler Egbert
Chandler Egbert
5,642 Points

Build a Simple Ruby on Rails Application - /statuses runtime error

I'm trying to get a hang of Ruby on Rails but I cannot get the /statuses to load when I run the project. I've followed everything in the tutorial and I can get the server to run to the point where I see the page that welcomes me to Ruby on Rails, but then when I type in "/statuses" after "" in my browser I get a page with this title every time:

ExecJS::RuntimeError in Statuses#index

Any ideas on how I can find and fix the problem?

3 Answers

Deleted User

Goto your Gemfile, and add the following:

gem 'therubyracer'

Then do a bundle install, and restart rails server. Should fix you up.

Chandler Egbert
Chandler Egbert
5,642 Points

I keep running into errors when I run the bundle install. Is there a clean way for me to just re-install ruby on rails and start from scratch again? I don't know what's going on.

If your on a Mac, check out rvm. It makes it much easier to get rails up and running, and gives you the ability to run different gemsets (a package of gems for a specific project).