title: Rails: $ is not defined
body: <p>Noted Things</p>
  
  <p>Rails 4.1.8</p>
  
  <p>jquery rails 3.1.3</p>
  
  <p>Windows 7 </p>
  
  <p>I am currently trying to run a simple coffescript under app/assets/javascripts/login.jscoffe</p>
  
  <pre><code>#   login.js.coffee   #
  $(document).on "page:change", -&gt;
    $('#loginb').click -&gt;
        alert "Clicked!"
  </code></pre>
  
  <p>When I load up the page I get a console error.</p>
  
  <pre><code>Uncaught reference error $ is not defined
  </code></pre>
  
  <p>Now I have tried several things, such as using rake precompile. Made sure I included in application js below.</p>
  
  <pre><code>//= require jquery
  //= require jquery_ujs
  </code></pre>
  
  <p>I've been reading up to see if there are other solutions. Some saying things about turbolinks. Should I just include the jquery right into the html page?</p>