twitter bootstrap drop down suddenly not working

后端 未结 14 1245
半阙折子戏
半阙折子戏 2020-11-28 22:18

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

14条回答
  •  無奈伤痛
    2020-11-28 23:10

    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" .

提交回复
热议问题