Rails: Linking directly to a JavaScript file in production -
i have javascript file in rails project i'd able link directly.
when running in development mode, can link "/assets/myfile.js" , works fine. however, in production mode, doesn't appear case.
i don't know enough asset pipeline, etc. figure out what's going on here.
how can link directly file once i've deployed project production?
you should learn asset pipeline, if want working, put in /public, e.g. /public/javascripts, , you'll able link expected.
Comments
Post a Comment