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 trialBrian Arpaio
Courses Plus Student 2,433 PointsError 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
Brian Arpaio
Courses Plus Student 2,433 PointsSolved: Found this thread: https://teamtreehouse.com/forum/ruby-status-issue
Stone Preston
42,016 Pointstry 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.