Ruby on Rails/Twitter Bootstrap Popover not working correctly after jQuery update

谁都会走 提交于 2019-12-05 21:07:44

Ever felt like giving yourself a swift kick?? :) OK, I figured it out. In my solutions.js.coffee (in the assets folder), I had this jQuery to trigger this when document was loaded:

$('.popover-with-html').popover({ html: true })

When I added this line to my up_votes.js.erb file below where I updated the data, it then reloaded the data and displayed correctly. Ugh - a whole day burned - but I guess you learn that way sometimes. :|

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!