title: how to load a Javascript file to rails html erb
body: <p>Um trying to load a javascript file as follows to my html.erb file</p>
  
  <pre><code> &lt;script src="/public/javascripts/test.js" type="text/javascript" /&gt; 
  </code></pre>
  
  <p>its available on the public folder and its in the root directory </p>
  
  <p>root/public/javascript</p>
  
  <p>but it giving me an error saying</p>
  
  <pre><code> "NetworkError: 404 Not Found  - http://0.0.0.0:3000/public/javascripts/test.js"
  </code></pre>
  
  <p>what could possibly wrong ? is there a different way to include a javascipt file in rails ?</p>