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

Ruby Build a Simple Ruby on Rails Application Getting Started with Rails Generate a Rails Application

Rails Server error

I run rails server in the cmd and in the browser I get this error.

ExecJS::RuntimeError in Statuses#index

Here is the displayed code with the error. This is shown in the browser.

<head> <title>Treebook</title> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %> </head> <body>

Thanks!

This seems a bit strange, I have two suggestions for you..

1) If i'm not mistaken there will be project files folder that you can download. This will show you how Treehouse has setup the project. Compare it with yours and see if there is something that you might have missed.

2) Scrap the app you built and restart making a new one and follow the instructions on how to create the app in the Video to the letter :) I often find that i have missed a step and that's why it often doesn't work like it should :)

thanks for the input bjorn. Fixed the mistake!

2 Answers

Hi Yong, you might try some of the solutions here.

Hi Dustin thanks for the link!

Unfortunately after pursuing all three methods from that link

( removing the require tree line, installing node.js, modifying runtimes.rb)

the same error seems to be running.