My Rails 4 application has the following edit.html.haml view for the projects:
%h1
Edit Project
.actions
= link_to 'Browse', projects_path, :class => 'btn'
= link_to 'View', project_path, :class => 'btn'
- if ((@project.teams.map { |t| t.user_id }.include? current_user.id) || is_admin?)
%a.btn.dropdown{:hfref => '#', :data => {:toggle => 'dropdown'}}
= 'Time'
%span.caret
%ul.dropdown-menu{:role => 'menu', 'aria-labelledby' => 'dLabel'}
%li
= link_to 'Submitted', billables_path(:project_id => @project.id, :status => 'Submitted')
%li
= link_to 'Totalled', billables_path(:project_id => @project.id, :status => 'Totalled')
%li
= link_to 'Adjusted', billables_path(:project_id => @project.id, :status => 'Adjusted')
%li
= link_to 'Billed', billables_path(:project_id => @project.id, :status => 'Billed')
= link_to 'Software', tools_path(:project_id => @project.id), :class => 'btn'
= link_to 'Expense', expenses_path(:project_id => @project.id), :class => 'btn'
= render :partial => 'team', :locals => { :project => @project }
= render :partial => 'form'
I am not sure why the drop-down menu is not displaying when I click on the 'Time' button underneath which there are four menu items. The browser console does not show any errors.
Are you loading the Bootstrap's javascript file? The dropdown is made interactive with the dropdown javaScript plugin included in bootstrap.js.