title: Ruby on rails 4.0 + javascript not loading
body: <p>I have a javascript file called "front.js" i load from "application.js" like usual with this code:</p>
  
  <pre><code>//= require front
  </code></pre>
  
  <p>Inside "front.js",i have many functions i want to launch when the document is ready like this:</p>
  
  <pre><code>$(document).ready(function() {
    $("#test").click(function(event){
      ...
    });
  });
  </code></pre>
  
  <p>But the problem is "front.js" is loaded only when i refresh the page manually (ctrl+r / f5 ) and not when i move from page to page, so my javascript code cannot be executed as wanted. Maybe this comes from turbolinks, i dont know how to handle this issue. When i put scripts directly in the html files, it works but it's definitely not the right thing to do.</p>
  
  <p>Can anyone help me on this please ?</p>