I am using a javascript plugin which requires the dom to be loaded before use. So I am loading all javascript files on applications.js except from the one file that I load dynamically with the javascript_include_tag, this works fine on localhost but when I push to heroku it doesn't find the file. Should I precompile the assets in order for this to work ?
rake assets:precompile(and)RAILS_ENV=production rails serverconfig.assets.precompile