title: Rails coffeescript : TypeError: Object doesn't support this property or method
body: <p>I have the following rails configuration:</p>
  
  <pre><code>Windows 7
  Rails 4.1.1
  Ruby 2.0.0p481
  Gem: coffee-rails 4.0.1
  Gem: coffee-script 2.3.0
  Gem: coffee-script-source 1.9.1
  </code></pre>
  
  <p>I have an application that was working fine, but now doesn't. I don't recall changing anything (<code>git diff</code> doesn't reveal anything). The error I'm getting is:</p>
  
  <pre><code>TypeError: Object doesn't support this property or method
    (in c:/Users/mbratc01/Documents/Rails/manpower/app/assets/javascripts/welcome.js.coffee)
  
  Extracted source (around line #9):
   7 &lt;%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' =&gt; false %&gt;
   8 &lt;%= javascript_include_tag 'jquery-1.11.1', 'data-turbolinks-track' =&gt; false %&gt;
   9 &lt;%= javascript_include_tag 'application', 'data-turbolinks-track' =&gt; false %&gt;
  10 &lt;%= csrf_meta_tags %&gt;
  11 &lt;/head&gt;
  </code></pre>
  
  <p>I really have no Coffeescript items going on yet. The contents of <code>welcome.js.coffee</code> are:</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://coffeescript.org/
  </code></pre>
  
  <p>I found that if I just move this file to another, inaccessible location, the application runs fine. Also, putting just an empty <code>.coffee</code> file in the <code>app/assets/javascript</code> folder generates the same error above.</p>
  
  <p>I've seen a couple of posts here on StackOverflow that looked very similar, but after reading through them, I couldn't find the root cause of my problem nor could I resolve it without just getting rid of the <code>.coffee</code> file. I suspect there's something not quite right with the CoffeeScript capability setup here, but not sure what that is given that the right gems appear to be installed.</p>
  
  <p>Anyone have a suggestion on what could be causing this error?</p>