Javascript features work on localhost but not when deployed to Heroku

前端 未结 8 1706
栀梦
栀梦 2020-12-01 17:57

I\'ve noticed that when I deploy to Heroku, javascript features dont work (such as Bootstrap Popover, Buttons, etc). I\'m working with rails 3.2.2, ruby 1.9.3. The features

8条回答
  •  自闭症患者
    2020-12-01 18:36

    I also had similar problem but the problem was happening on localhost as well.

    You are probably using rails-bootstrap gem. It installs a file bootstrap.coffee.js This file was culprit. It had .popover use and relevant plugin was not included. I commented that out as I was not using it anyway but you should consider including the popover plugin for bootstrap.

提交回复
热议问题