title: javascript - Twitter bootstrap jquery plugins not compiled for production
body: <p>I'm developing a 3.1 Rails app with Twitter Bootstrap using <a href="https://github.com/seyhunak/twitter-bootstrap-rails" rel="noreferrer">seyhunak's gem</a>. </p>
  
  <p>On the production mode, I was able to use basic bootstrap CSS and JS through pipeline precompilation:</p>
  
  <pre><code>RAILS_ENV=production bundle exec rake assets:precompile
  </code></pre>
  
  <p>Using the gem file :</p>
  
  <pre><code>group :assets do
    gem 'sass-rails',   '~&gt; 3.1.5'
    gem 'coffee-rails', '~&gt; 3.1.1'
    gem 'uglifier', '&gt;= 1.0.3'
    gem "twitter-bootstrap-rails"
  end
  </code></pre>
  
  <p>And the application.js file:</p>
  
  <pre><code>//= require_tree .
  
  //= require jquery
  //= require jquery_ujs
  //= require twitter/bootstrap
  //= require bootstrap-tab
  //= require bootstrap-modal
  //= require bootstrap-dropdown
  //= require bootstrap-popover
  </code></pre>
  
  <p>The application worked fine except for for the bootstrap plugins such as modals and dropdowns. These plugins exist as static javascript libraries existing inside the vendor assets directory:</p>
  
  <pre><code>/vendor/assets/javascripts/bootstrap-dropdown.js
  ...
  </code></pre>
  
  <p>I'm not sure whether these files are being precompiled or not, how can I manage to do so?</p>