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

Error when trying to access /statuses

The page that shows up when I try to access my server and then the statuses directory is: ExecJS::RuntimeError in Statuses#index

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

(in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/turbolinks-2.2.2/lib/assets/javascripts/turbolinks.js.coffee)

Extracted source (around line #6): 3 <head> 4 <title>Treebook</title> 5 <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> 6 <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> 7 <%= csrf_meta_tags %> 8 </head> 9 <body>

Rails.root: C:/Sites/treebook

Application Trace | Framework Trace | Full Trace app/views/layouts/application.html.erb:6:in `app_views_layouts_application_html_erb_584376602_34425276' Request

Parameters:

None Toggle session dump Toggle env dump Response

Headers:

None

Anyone know what I might have done wrong somewhere?

2 Answers

Stone Preston
Stone Preston
42,016 Points

try adding the following to your gem file:

gem 'therubyracer'

then run

bundle install

in terminal.

sounds like youve got something going on with your JS runtime, and this might fix it.