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

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -