I'm new in Rails, so I'm following tutorials from Michael Hartl. Currently I'm stuck on Chapter 2 The problem begins from Section 2.2
I generate the Users
scaffold as instructed in the text, and then use rake db:migrate
to apply migrations to database. However attempting to view the users after starting the server gives me an error:
ExecJS::RuntimeError in Users#index
Showing C:/Sites/rails_projects/demo_app/app/views/layouts/application.html.erb where line #6 raised:
(in C:/RailsInstaller3.0/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/turbolinks-1.1.1/lib/assets/javascripts/turbolinks.js.coffee)
Extracted source (around line #6):
3
4
5
6
7
8
9
<head>
<title>DemoApp</title>
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
</head>
<body>
Rails.root: C:/Sites/rails_projects/demo_app
Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___308270545_35424396'
It does the same thing if I attempt to view any of the other pages that Michael's tutorial instructs. I'm not sure where to begin trying to debug this. Any help would be greatly appreciated.
Git repository is here: https://github.com/Tritonis/demo_app