Reputation: 52540
I get the following error:
ExecJS::RuntimeError in Devise::Sessions#new
Showing C:/Users/me/RubymineProjects/my_project/app/views/layouts/application.html.erb where line #6 raised:
(in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/turbolinks-1.1.1/lib/assets/javascripts/turbolinks.js.coffee)
Extracted source (around line #6):
3 <head>
4 <title>HourlyTracker</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>
I'm using the 3.0.0rc version of Devise, which is supposed to work with Ruby 2.0 and Rails 4.0rc1. I'm on Windows x64.
Upvotes: 5
Views: 2802
Reputation: 2102
This is 3 years late, but for anybody who finds this, the error the OP got most likely means that he has a typo in his coffee files. He likely typed something that Coffee doesn't recognize.
Upvotes: 0
Reputation: 1121
If you have "turbolinks
" within assets group, get it out.
I had similar issue where my test failed because one or all of following gems were within test group,
gem 'jquery-rails', '3.0.4'
gem 'turbolinks', '1.1.1'
gem "haml-rails"
gem 'gumby-framework'
gem "modernizr-rails"
but when I got them out of the group my test passed.
Upvotes: 0
Reputation: 4966
Click here and install node.js' windows version. It will solve your problem: http://nodejs.org/
On windows, on linux and on mac, the best V8 engine is nodejs and you don't have to install any other gem for this.
Upvotes: 3