title: Rails, javascript not loading after clicking through link_to helper
body: <p>I'm having some trouble loading my javascript when I use a link_to helper in rails. When I either manually enter the url with 'localhost:3000/products/new' or reload the page, the javascript loads, but when I go through a link as written below, the jQuery <code>$(document).ready</code> will not load on the new page. </p>
  
  <p>Link_to, javascript does not load when I click this link:</p>
  
  <pre><code>&lt;%= link_to "New Product", new_product_path %&gt;
  </code></pre>
  
  <p>products.js file</p>
  
  <pre><code>$(document).ready(function() {
      alert("test");
  });
  </code></pre>
  
  <p>Any help would be much appreciated. Thanks in advance!</p>