Just ran a "generate scaffold Users ... " command.
Then I go to localhost:3000/users/
and see this:
ExecJS::RuntimeError in Users#index
Showing C:/Users/TheOnlyUser/Desktop/NMS/nms2/app/views/layouts/application.html.erb where line #6 raised:
(in C:/Users/TheOnlyUser/Desktop/NMS/nms2/app/assets/javascripts/ads.js.coffee)
Extracted source (around line #6):
3: <head>
4: <title>Nms2</title>
5: <%= stylesheet_link_tag "application", :media => "all" %>
6: <%= javascript_include_tag "application" %>
7: <%= csrf_meta_tags %>
8: </head>
9: <body>
Rails.root: C:/Users/TheOnlyUser/Desktop/NMS/nms2
Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___753556572_43068540'
app/controllers/users_controller.rb:7:in `index'
...
What does that all mean?
UPDATE:
That's on Windows 8. Windows 7 doesn't give these errors.
I had the same problem, and solution 3 by Kevin P worked for me (editing the runtimes.rb file).
My setup at time of applying solution is as follows:
OS: Windows 8.1
Ruby version: 1.9.3p484
Rails version: 3.2.14
Like the commenters said, you're probably missing a gem. Try adding the following to your gemfile:
And run
bundle install