title: ExecJS::RuntimeError on Windows trying to follow rubytutorial
body: <p><strong>UPDATE:</strong> <a href="https://stackoverflow.com/users/1017768/colin-r">Colin</a>'s suggestion of removing the line //= require_tree . has fixed the issue.</p>
  
  <p>I have wasted over 2 days trying to follow every suggestion out there and fix my issue. I am trying to follow the <a href="http://ruby.railstutorial.org" rel="noreferrer">http://ruby.railstutorial.org</a> book on windows machine and cannot for the life of me get past the following nasty error.</p>
  
  <pre><code>ExecJS::RuntimeError in Static_pages#home
  
  Showing C:/Users/.../bootcamp-sample-app/app/views/layouts/application.html.erb where line #6 raised:
  
  ["ok","(function() {\n\n\n\n}).call(this);\n"]
  (in C:/Users/.../bootcamp-sample-app/app/assets/javascripts/sessions.js.coffee)
  Extracted source (around line #6):
  
  3: &lt;head&gt;
  4:   &lt;title&gt;&lt;%= full_title(yield(:title)) %&gt;&lt;/title&gt;
  5:   &lt;%= stylesheet_link_tag    "application", media: "all" %&gt;
  6:   &lt;%= javascript_include_tag "application" %&gt;
  7:   &lt;%= csrf_meta_tags %&gt;
  8:   &lt;%= render 'layouts/shim' %&gt;
  9: &lt;/head&gt;
  Rails.root: C:/Users/.../bootcamp-sample-app
  
  Application Trace | Framework Trace | Full Trace
  app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___487732698_30422172'
  Request
  </code></pre>
  
  <p>I have tried every suggestion including installing nodejs with the msi, using execjs 1.3.0 and other things which I can't even remember any more. Here is the <strong>gem file</strong> </p>
  
  <pre><code>source 'https://rubygems.org'
  
  gem 'rails', '3.2.8'
  gem 'bootstrap-sass', '2.0.0'
  gem 'bcrypt-ruby', '3.0.1'
  gem 'faker', '1.0.1'
  gem 'will_paginate', '3.0.3'
  gem 'bootstrap-will_paginate', '0.0.6'
  
  group :development, :test do
    gem 'sqlite3', '1.3.5'
    gem 'rspec-rails', '2.10.0'
    gem 'guard-rspec', '0.5.5'
    gem 'guard-cucumber'
  end
  
  group :development do
    gem 'annotate', '2.5.0'
  end
  
  
  # Gems used only for assets and not required
  # in production environments by default.
  group :assets do
    gem 'sass-rails'
    gem 'coffee-rails'
    gem 'coffee-script'
    gem 'uglifier'
  end
  
  gem 'jquery-rails', '2.0.2'
  
  gem 'execjs'
  
  # Gems on Linus/Mac
  #gem 'therubyracer'
  
  
  group :test do
    gem 'capybara', '1.1.2'
    gem 'guard-spork', '0.3.2'
    gem 'spork', '0.9.0'
    gem 'factory_girl_rails', '1.4.0'
    gem 'cucumber-rails', '1.2.1', require: false
    gem 'database_cleaner', '0.7.0'
  
  
  # Test gems on Linux
  #  gem 'rb-inotify', '0.8.8'
  #  gem 'libnotify', '0.5.9'
  
  # Test gems on Macintosh OS X
  #  gem 'selenium-webdriver', '~&gt; 2.22.0'
  #  gem 'rb-fsevent', '0.9.1', :require =&gt; false
  #  gem 'growl', '1.0.3'
  
  # Test gems on Windows
  # gem 'rb-fchange', '0.0.5'
  # gem 'rb-notifu', '0.0.4'
  # gem 'win32console', '1.3.0'
  end
  
  group :production do
  #  gem 'therubyracer'
    gem 'pg', '0.12.2'
  end
  
  # To use ActiveModel has_secure_password
  # gem 'bcrypt-ruby', '~&gt; 3.0.0'
  
  # To use Jbuilder templates for JSON
  # gem 'jbuilder'
  
  # Use unicorn as the app server
  # gem 'unicorn'
  
  # Deploy with Capistrano
  # gem 'capistrano'
  
  # To use debugger
  #gem 'debugger''
  </code></pre>
  
  <p>and here is the <strong>sessions.js.coffee</strong></p>
  
  <pre><code># Place all the behaviors and hooks related to the matching controller here.
  # All this logic will automatically be available in application.js.
  # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
  </code></pre>
  
  <p><strong>application.js</strong></p>
  
  <pre><code>// This is a manifest file that'll be compiled into application.js, which will include all the files
  // listed below.
  //
  // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
  // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
  //
  // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
  // the compiled file.
  //
  // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
  // GO AFTER THE REQUIRES BELOW.
  //
  //= require jquery
  //= require jquery_ujs
  //= require_tree .
  //= require bootstrap
  </code></pre>
  
  <p><strong>application.html.erb</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
   &lt;html&gt;
   &lt;head&gt;
     &lt;title&gt;&lt;%= full_title(yield(:title)) %&gt;&lt;/title&gt;
     &lt;%= stylesheet_link_tag    "application", media: "all" %&gt;
     &lt;%= javascript_include_tag "application" %&gt;
     &lt;%= csrf_meta_tags %&gt;
     &lt;%= render 'layouts/shim' %&gt;
   &lt;/head&gt;
   &lt;body&gt;
   &lt;%= render 'layouts/header' %&gt;
   &lt;div class="container"&gt;
     &lt;%= yield %&gt;
     &lt;%= render 'layouts/footer' %&gt;
   &lt;/div&gt;
   &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>
  
  <p>Here is <strong>console content</strong></p>
  
  <pre><code>Processing by StaticPagesController#home as HTML
    Rendered static_pages/home.html.erb within layouts/application (45.0ms)
  Completed 500 Internal Server Error in 1136ms
  
  ActionView::Template::Error (["ok","(function() {\n\n\n\n}).call(this);\n"]
    (in C:/Users/.../bootcamp-sample-app/app/assets/javascripts/sessions.js.coffee)):
      3: &lt;head&gt;
      4:   &lt;title&gt;&lt;%= full_title(yield(:title)) %&gt;&lt;/title&gt;
      5:   &lt;%= stylesheet_link_tag    "application", media: "all" %&gt;
      6:   &lt;%= javascript_include_tag "application" %&gt;
      7:   &lt;%= csrf_meta_tags %&gt;
      8:   &lt;%= render 'layouts/shim' %&gt;
      9: &lt;/head&gt;
    app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___487732698_30422172'
  
  
    Rendered C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms)
    Rendered C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
    Rendered C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (34.0ms)
  </code></pre>
  
  <p>I have installed Devkit and have tried various gems but please suggest changes which can help me develop on windows. I used rubyinstaller for everything.</p>
  
  <p>What am I missing?</p>