Um tries to load the javascript file as follows in the html.erb file
<script src="/public/javascripts/test.js" type="text/javascript" />
it is available in the shared folder and in the root directory
root / state / javascript
but it gives me an error saying
"NetworkError: 404 Not Found - http://0.0.0.0:3000/public/javascripts/test.js"
what could be wrong? is there any other way to include javascipt file in rails?
source share