I am new to ruby and rails and walk (walk around?) Through the tutorial. the second project uses scaffolding to create a user consisting of a name and email address. when I try to view the users screen, I get the following:
ExecJS::RuntimeError in Users#index Showing /home/max/rails_proj/demo_app/app/views/layouts/application.html.erb where line #6 raised: 湉異⁴牅潲㩲唠歮潮湷漠瑰潩⼢浴⽰硥捥獪〲ㄱ㤰㔲㐭㜲ⴲ㠱㝮穩ⴰ⸰獪•灳捥晩敩 (in /home/max/rails_proj/demo_app/app/assets/javascripts/users.js.coffee) Extracted source (around line #6): 3: <head> 4: <title>DemoApp</title> 5: <%= stylesheet_link_tag "application" %> 6: <%= javascript_include_tag "application" %> 7: <%= csrf_meta_tags %> 8: </head> 9: <body> Rails.root: /home/max/rails_proj/demo_app Application Trace | Framework Trace | Full Trace app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__1031573605_1065816420' app/controllers/users_controller.rb:7:in `index'
I use windows xp, cygwin, rails 3.1.0 (I also tried the new rc1), ruby 1.8.7.
I found this error on google and there might have been a fix that I was trying to use (execjs gem 1.2.9), but that doesn't seem to fix it for me .... I tried all the fixes (for the best of mine ruby's limited features, etc.), but nothing works, although the error message is sometimes different - there are still errors on the same line.
I tried uninstalling and reinstalling cygwin, ruby, rails, etc., until it helped ...
any feedback would be great!
source share