I am following the tutorial at http://ruby.railstutorial.org/chapters/a-demo-app#sec:planning_the_application . After generating the scaffold for users. when i try to access localhost: 3000 / users. I got the following error in ExecJS
Started GET "/users" for 127.0.0.1 at 2012-08-01 13:35:37 -0500 Connecting to database specified by database.yml Processing by UsersController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" Rendered users/index.html.erb within layouts/application (3.1ms) Completed 500 Internal Server Error in 458ms ActionView::Template::Error (ExecJS::ProgramError (in /Users/kylec/apps/demo_app/app/assets/javascripts/users.js.coffee)): 3: <head> 4: <title>DemoApp</title> 5: <%= stylesheet_link_tag "application", :media => "all" %> 6: <%= javascript_include_tag "application" %> 7: <%= csrf_meta_tags %> 8: </head> 9: <body> app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___642905557_18993590' app/controllers/users_controller.rb:7:in `index'
The page is displayed if I exit the application #line 6 <% = javascript_include_tag "%> I run ruby ββ1.9.3, rails 3.2.7, osx 10.5.8
user1569484
source share