In my Rails application, I have the following code for a dropdown menu:
&l
I tested your HTML code and it worked fine.
First of all, make sure you are loading jQuery first:
//= require jquery //= require bootstrap
Also, you have to call the dropdown via javascript:
$('.dropdown-toggle').dropdown()