Bootstrap 4 alpha6 |汉堡菜单可点击但没有回应heroku

时间:2017-03-08 22:30:03

标签: ruby-on-rails twitter-bootstrap heroku

我使用新的Bootstrap 4 alpha6构建了一个导航栏,它全部在本地工作,但在Heroku上,切换按钮是可点击的,但不能打开链接菜单。 我使用的是Rails 5和HAML。

以下是网站:https://wiki-shmutz.herokuapp.com/

以下是代码:

%nav.navbar.navbar-toggleable-md.navbar-inverse.bg-inverse
  %button.navbar-toggler.navbar-toggler-right{"aria-controls" => "navbarNavAltMarkup", "aria-expanded" => "false", "aria-label" => "Toggle navigation", "data-target" => "#navbarNavAltMarkup", "data-toggle" => "collapse", :type => "button"}
    %span.navbar-toggler-icon
  = link_to "ויקישמוץ", root_path, class: "navbar-brand"
  %div.collapse.navbar-collapse#navbarNavAltMarkup
    %div.navbar-nav.mr-auto
      - if user_signed_in?
        .nav-item.nav-link
        = image_tag "profile.svg", width: "40", height: "40"
        = link_to current_user.username, edit_user_registration_path, class: "nav-link"
        .nav-item.nav-link
        = link_to "התנתקות", destroy_user_session_path, method: :delete, data: { confirm: "את בטוחה?" }, class: "nav-link"
        %span.sr-only (current)
        .nav-item.nav-link
          = link_to "יצירת ערך חדש", new_article_path, class: "nav-link"
      - else
        .nav-item.nav-link
          = link_to " כניסה ", new_user_session_path, class: "nav-link"
        .nav-item.nav-link
          = link_to " הרשמה ", new_user_registration_path, class: "nav-link"
      .nav-item.nav-link
        = link_to "אודות", articles_about_path, class: "nav-link"
      .nav-item.nav-link
        .copy-left ©
        מעגל הקוד השומרי

并在application.scss中:

@import "bootstrap";

提前感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

看起来页面上有一个JS错误Uncaught ReferenceError: CKEDITOR is not defined。这可能会阻止菜单JS运行?