So I just pushed an app to Heroku, and JavaScript and jQuery are not working for me.
Have looked at a bunch of solutions for this but none seem to be work.
I have precompiled my assets, and I can see in Firebug that some of the functions I have declared in some of my js files in the assets folder are loading but some are not.
Edit: Just added a very simple alert function which works just fine.
Images are loading fine, styles are loading fine. Have rails_12factor gem and have run bundle exec rake assets:precompile. Can anyone point me in the right direction in terms of debugging?
So, I was getting this error;
'undefined' is not an object (evaluating 'f.msie')
which was resulting from one of the plugins using $.browser which has since been removed.
Installed jQuery migrate gem, re-pushed code, all jQuery and javascript now works.
Thanks to anyone who took the time to look this over.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.