I have put all my javascript and css files in /assets/javascripts
and /assets/stylesheets
directories.
Example: /assets/javascripts/common.js
I load them in view file as follows:
<script type="text/javascript" src="/assets/common.js"></script>
I ran my rails app locally and it ran successfully. But on production machine, I getting the following error:
GET http://server-machine:port/javascripts/common.js 404 (Not Found)