title: 404 not found error for assets in rails 4 production enviroment
body: <p>I am new to rails from java enviroment. I have few confusions in asset pipeline with rails 3 to 4. </p>
  
  <p>Currently I am in rails 4.2.5
  I created a sample app on my local environment.
  I created a new js from inside app/assets/javascripts and referencing it from the view , everything seems to working fine on my local environment.</p>
  
  <p>After this I thought to test with production env how it works. Here are the steps I did.</p>
  
  <ol>
  <li>RAILS_ENV=production rake assets:clean assets:precompile [All the files created public/assets]</li>
  <li>Started the server in production mode rails server -e production</li>
  <li>Now when i browsed the page I am getting this error,
  <code>"NetworkError: 404 Not Found  - http://localhost:3000/assets/application-c5c431cb7c0a202f831a634922aaf1d536712002ae74334fb03ba4698b32b84c.js"</code> in firebug.</li>
  </ol>
  
  <p>When searched few threads , they suggest to add <code>config.assets.compile = true</code>. But I do not think so this is what the solution is, as it slows down the app. </p>
  
  <p>Please help.</p>