i was wondering if someone could help me. my bootstrap drop down menu suddenly stopped working. i have no idea why. it was working before. i didn\'t touch my views my layout
Moving //= require jquery
below //= require bootstrap
and upgrading gem 'bootstrap-sass'
, to 2.3.0.1, solved my problem.
I want to add that solution which i mentioned above works only on Localhost but not on Heroku. Solution for both in my case was:
//= require jquery
//= require jquery_ujs
//= require bootstrap
//= require_tree .
gem bootstrap-sass
, 2.3.0.1
and <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
needs to be inside
"_header.html.erb" and delete from "application.html.erb" .