title: Failed to load resource - server responded with a 404 status error in Rails 3 project
body: <p>I'm trying to load up jquery masonry script in my app, but it's not working. </p>
  
  <p>Upon debugging, I see this error:</p>
  
  <pre><code>Failed to load resource: the server responded with a http://localhost:3000/app/assets/javascripts/jquery.masonry.min.js status of 404 (Not Found)
  </code></pre>
  
  <p>If I try to access the script directly from my browser via the link <a href="http://localhost:3000/app/assets/javascripts/jquery.masonry.min.js" rel="nofollow noreferrer">http://localhost:3000/app/assets/javascripts/jquery.masonry.min.js</a> I get this error:</p>
  
  <pre><code>No route matches [GET] "/Users/fkhalid2008/loand/app/assets/javascripts/jquery.masonry.min.js"
  </code></pre>
  
  <p>What am I doing wrong here?</p>
  
  <p>Relevant code is attached below.</p>
  
  <p>Thanks,</p>
  
  <p>Faisal</p>
  
  <p><strong>POSTS>INDEX.HTML.ERB (This is where I am trying to load up the Jquery Masonry script)</strong></p>
  
  <pre><code>&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="/app/assets/javascripts/jquery.masonry.min.js"&gt;     
  &lt;/script&gt;
  
  .....
  
  &lt;script type="text/javascript"&gt; 
  $('#container').masonry({
    itemSelector: '.box',
     columnWidth : 120 
  });
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>APPLICATION.JS FILE</strong></p>
  
  <pre><code>//= require jquery
  //= require jquery_ujs
  //= require jquery.masonry.min
  //= require twitter/bootstrap
  //= require_tree .
  </code></pre>