title: Adding JQuery or Javascript (not coffee.script) code to a Rails 3.2 app?
body: <p>I just finished <a href="http://www.codeschool.com/">Code School's</a> intro course on JQuery, <a href="http://www.codeschool.com/courses/jquery-air-first-flight">jQuery Air: First Flight</a>.  It was a great way to learn the basics of jQuery and when I was done I was all excited about adding some jQuery to my new little rails 3.2 app.  How to make that happen isn't obvious, though.</p>
  
  <p>By default, rails 3.2 comes with the jquery-rails and coffee-rails gems.  New 3.2 apps are all set up accept javascript and jquery in the form of coffee-script.  While I'll learn coffee-script soon, right now all I've got is jquery.  </p>
  
  <p>More specifically, should I add something like:</p>
  
  <pre><code>&lt;script type="text/javasript" src= "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>into the head of my <code>app/views/layouts/application.html.erb</code> file or is all that taken care of jquery-rails gem and the</p>
  
  <pre><code>&lt;%= javascript_include_tag "application" %&gt;
  </code></pre>
  
  <p>already there?</p>
  
  <p>Where in my app do I put the jQuery code?  With every new controller I generate, rails 3.2 creates a nice <code>[new_controller].js.coffee</code> file in the <code>app/assets/javascripts/</code> directory.  Javascript doesn't work if I put it in that <code>.coffee</code> file.  Anyone have any thoughts?</p>