Any ideas? Thanks!
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.
Manually precompiling worked for me.
bundle exec rake assets:precompile before you push to heroku.
I had the exact same issue (I’m very new to Rails). I eventually solved the issue by rearranging the order of files within application.js:
//= require jquery //= require jquery_ujs //= require twitter/bootstrap
I used these two posts:
Check your production.rb file. I believe the line needs to be:
config.assets.compile = true
I believe this gets set to false by default.
Remember that everything that you would normally do on localhost, you must be doing with heroku. Make sure you
heroku run rake assets:precompile.
Checked the minified js for my app, and popover was twice in the file.
Be sure that only one of
From the docs:
bootstrap-sprockets and bootstrap should not both be included in application.js.
(alert.js or dropdown.js, for example), while bootstrap provides a
Be sure that only one of bootstrap and bootstrap sprockets
- Database Administration Tutorials
- Programming Tutorials & IT News
- Linux & DevOps World
- Ebook Reviews
- PES Matches, Skills & News