title: Where, in Rails, is the best place to add in JS script for multiple pages?
body: <p>I know this is probably easy but it doesn't look like it's working. I have three views in my Books folder (index, order, and show). I need to apply a script to each of the pages that have something like: </p>
  
  <pre><code>&lt;script&gt;
   !(function() {
    var t;
    if (((t = windo.driftt = window.drift = window.driftt || []). !t.init))
     return t.invoked?
     void(
      window.console &amp;&amp;
      console.error &amp;&amp;
    drift.load("lettersandnumbers");
  &lt;/script&gt;
  </code></pre>
  
  <p>My thought was to create a book.js file under app > assets > javascripts. Copy/paste everything between script into book.js. Then update my index, show, and order to:</p>
  
  <pre><code>&lt;script&gt;
   $(document).ready(app.book);
  &lt;/script&gt;
  </code></pre>
  
  <p>Is this correct? Or is there a better way to have my script hit all of my views under Books?</p>