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

Error after scaffolding/rake db

After I followed the steps to generate the app and the following tasks I started the server, proceeded to localhost:3000/statuses and I received the following error:

ExecJS::RuntimeError in Statuses#index

Showing c:/treebook/app/views/layouts/application.html.erb where line #6 raised:


  (in c:/treebook/app/assets/javascripts/statuses.js.coffee)
Extracted source (around line #6):

3: <head>
4:   <title>Treebook</title>
5:   <%= stylesheet_link_tag    "application", :media => "all" %>
6:   <%= javascript_include_tag "application" %>
7:   <%= csrf_meta_tags %>
8: </head>
9: <body>
Rails.root: c:/treebook

Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___57072933_39482184'
app/controllers/statuses_controller.rb:7:in `index'
Request

Parameters:

None
Show session dump

Show env dump

GATEWAY_INTERFACE: "CGI/1.1"
HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_CHARSET: "ISO-8859-1,utf-8;q=0.7,*;q=0.3"
HTTP_ACCEPT_ENCODING: "gzip,deflate,sdch"
HTTP_ACCEPT_LANGUAGE: "en-US,en;q=0.8"
REMOTE_ADDR: "127.0.0.1"
REMOTE_HOST: "LIGHTHOUSE-i7"
SERVER_NAME: "localhost"
SERVER_PROTOCOL: "HTTP/1.1"
Response

Headers:

None

3 Answers

Also tried with 127.0.0.1:3000, same result

if you are using Linux Ubuntu or mint. Also install nodejs with sudo.

Im not sure wht error ur are facing though.

Anyone find a solution for this? Can't get around this problem.