如果我点击我的下拉菜单,什么都没有发生......
这里有几行代码:
应用程序/资产/javascripts/application.js
//= require bootstrap
//= require jquery
//= require jquery_ujs
//= require_tree .
应用程序/视图/布局/application.html.erb
<%= stylesheet_link_tag "application", media: "all" %>
<%= javascript_include_tag "application", media: "all" %>
<%= csrf_meta_tags %>
<%= favicon_link_tag %>
应用程序/视图/布局/_header.html.erb
<header class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<%= link_to "Something", root_path, id: "logo" %>
<ul class="nav pull-right noline">
<li><%= link_to "Docs", '/home' %></li>
<% if user_signed_in? %>
<li id="fat-menu" class="dropdown bold">
<a href="#fat-menu" class="dropdown-toggle" data-toggle="dropdown">
<%= current_user.username %><b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><%= link_to "Settings", edit_user_registration_path %></li>
<li class="divider"></li>
<li>
<%= link_to "Logout", destroy_user_session_path %>
</li>
</ul>
</li>
<% end %>
</ul>
</div>
</div>
</header>