在我的_header.html.erb中,我有以下内容:
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle='dropdown'>
Journal Entries
<b class='caret'></b>
</a>
<ul class="dropdown-menu">
<li><%= link_to "List all Journal Entries", sournal_entries_path %></li>
<li><%= link_to "New Journal Entry", new_journal_entry_path %></li>
</ul>
</li>
在我的application.js中,我有以下内容:
//= require jquery
//= require jquery_ujs
//= require bootstrap
//= require bootstrap/affix
//= require bootstrap/alert
//= require bootstrap/button
//= require bootstrap/carousel
//= require bootstrap/collapse
//= require bootstrap/dropdown
//= require bootstrap/tab
//= require bootstrap/transition
//= require bootstrap/scrollspy
//= require bootstrap/modal
//= require bootstrap/tooltip
//= require bootstrap/popover
//= require google-code-prettify
//= require turbolinks
//= require_tree .
出现菜单项(日记帐分录),旁边有一个carret,但点击carret或菜单项不执行任何操作。我错过了什么?
答案 0 :(得分:0)