JavaScript not loading on Heroku but works locally

前端 未结 1 728
攒了一身酷
攒了一身酷 2020-12-20 10:16

I\'m making an app on Rails, and it works locally, but images and JavaScript is not loading when I try to deploy it on Heroku.

application.js:

//= r         


        
相关标签:
1条回答
  • 2020-12-20 10:33

    Your javascript is loading fine. You have an error because you're using an older plugin which tries to use $.browser which has now been removed from jQuery (see note here: http://api.jquery.com/jQuery.browser/).

    You need to install the jQuery.migrate plugin: http://code.jquery.com/jquery-migrate-1.2.1.js

    0 讨论(0)
提交回复
热议问题