title: Why is this twitter-bootstrap drop down not working in ruby on rails?
body: <p>This seems so simple, yet I can't figure it out.  For some reason, clicking on the dropdown menu is not working, yet everything else in twitter bootstrap is.  I'm using ruby on rails.  I've already looked at stackoverflow questions that say to simply wrap the whole ul in a div with class "drop down-menu", but that shouldn't be necessary.  I should be able to do it inside the ul tag.  Any ideas?  Thank you.</p>
  
  <pre><code>          &lt;li id="fat-menu" class="dropdown"&gt;
            &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;
              Account &lt;b class="caret"&gt;&lt;/b&gt;
            &lt;/a&gt;
            &lt;ul class="dropdown-menu"&gt;
              &lt;li&gt;&lt;%= link_to "Profile", current_user %&gt;&lt;/li&gt;
              &lt;li&gt;&lt;%=link_to "Settings", '#' %&gt;&lt;/li&gt;
              &lt;li class="divider"&gt;&lt;/li&gt;
              &lt;li&gt;
                &lt;%= link_to "Sign out", signout_path, method: "delete" %&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
  </code></pre>
  
  <p>That is the main code where I believe the problem is.  It might be somewhere below (same as above but with less taken out) but i doubt it:</p>
  
  <pre><code>    &lt;ul class="nav pull-right"&gt;
        &lt;li&gt;&lt;%= link_to "Home", root_path %&gt;&lt;/li&gt;
        &lt;li&gt;&lt;%= link_to "Help", help_path %&gt;&lt;/li&gt;
        &lt;% if signed_in? %&gt;
          &lt;li&gt;&lt;%= link_to "Users", '#' %&gt;&lt;/li&gt;
          &lt;li id="fat-menu" class="dropdown"&gt;
            &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;
              Account &lt;b class="caret"&gt;&lt;/b&gt;
            &lt;/a&gt;
            &lt;ul class="dropdown-menu"&gt;
              &lt;li&gt;&lt;%= link_to "Profile", current_user %&gt;&lt;/li&gt;
              &lt;li&gt;&lt;%=link_to "Settings", '#' %&gt;&lt;/li&gt;
              &lt;li class="divider"&gt;&lt;/li&gt;
              &lt;li&gt;
                &lt;%= link_to "Sign out", signout_path, method: "delete" %&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
          &lt;%= "Technically signed in.  should be true.  It is: " + signed_in?.to_s %&gt;
  
        &lt;% else %&gt;
          &lt;%= "Technically not signed in.  should be false.  It is: " + signed_in?.to_s %&gt;
          &lt;li&gt;&lt;%= link_to "Sign in", signin_path %&gt;&lt;/li&gt;
        &lt;% end %&gt;
      &lt;/ul&gt;
  </code></pre>
  
  <p>Here is the application.js file</p>
  
  <pre><code>//= require bootstrap
  //= require bootstrap-dropdown
  //= require jquery
  //= require jquery_ujs
  //= require turbolinks
  //= require_tree .
  </code></pre>