Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't get new Rails app with Devise to display sign_in/sign_up pages

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.

like image 773
at. Avatar asked Oct 21 '22 09:10

at.


1 Answers

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.

like image 166
Zoltan Avatar answered Oct 30 '22 02:10

Zoltan