Drop-down and maybe all jquery plugin not working in twitter-bootstrap-rails
===

My twitter bootstrap dropdown plugin is not working (both in production and development, yes I tried precompiling assets). When I click on dropdown button it pop's the menu (sign in form in my case). But, when I click on one of the field or anywhere inside menu the box goes. I am on Rails 3.2.7.rc1 (not working in 3.2.6 too) and using `twitter-bootstrap-rails` gem.

Code:

    <div class="row">
	<div class="span11" style="border:1px dotted black">
		<div class="navbar">
			<div class="navbar-inner">
				<div class="container">
					<a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</a>
					<div class="nav-collapse">
						<div class="btn-group pull-right">
							<a data-toggle="dropdown" class="btn btn-simple dropdown-toggle" href="#"></i><i class="icon-hand-right"></i> Sign In <b class="caret"></b></a>
							<div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">
								<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
								  <div><%= f.email_field :email, :placeholder=>"Email" %></div>

								 
								   <div><%= f.password_field :password, :placeholder=>"Password" %></div>

								  <% if devise_mapping.rememberable? -%>
								    <div style="display:inline"><%= f.check_box :remember_me, :style=>"float: left; margin-right: 3px;" %> <%= f.label :remember_me, :style=>"float: left; margin-right: 10px;"%></div>
								  <% end -%>

								  <div><%= f.submit "Sign in", :class=>"pull-right btn btn-primary" %></div>
						          <div><%= link_to "Create an account", new_user_registration_path%></div>
								<% end %>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>	
	

GemFile:

    group :assets do
      gem 'sass-rails',   '~> 3.2.3'
      gem 'coffee-rails', '~> 3.2.1'
      gem "meta_search",    '>= 1.1.0.pre'
      gem "twitter-bootstrap-rails" #2.1.0
      gem 'uglifier', '>= 1.0.3'
   end

application.js :

     // This is a manifest file that'll be compiled into application.js, which will include all the files
    // listed below.
    //
     // Any JavaScript/Coffee file within this directory, lib/assets/javascripts,   vendor/assets/javascripts,
    // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
    //
    // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
    // the compiled file.
    //
    // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
     // GO AFTER THE REQUIRES BELOW.
    //
     //= require jquery
    //= require jquery_ujs
    //= require twitter/bootstrap


    //= require_tree .


