title: Extending bootstrap typeahead with bootstrap-sass
body: <p>I'm creating a rails site using the <a href="https://github.com/thomas-mcdonald/bootstrap-sass/" rel="nofollow">bootstrap-sass gem</a> and it works fine. 
  I'm also successfully initializing the typeahead on my js.erb:</p>
  
  <pre><code>$container.find('.typeahead').typeahead({source: [&lt;%= @cities %&gt;], items:20});
  </code></pre>
  
  <p>But now I want to use an extended version of typeahead that uses an array of kvp objects instead of strings. <a href="https://github.com/tcrosen/twitter-bootstrap-typeahead" rel="nofollow">This one</a> from tcrosen seems just fine.</p>
  
  <p>I added their <a href="https://github.com/tcrosen/twitter-bootstrap-typeahead/blob/master/lib/bootstrap-typeahead.js" rel="nofollow">bootstrap-typeahead.js</a> to app/assests/javascripts folder. Changed the application.js to include that file:</p>
  
  <pre><code>...
  //= require jquery
  //= require jquery_ujs
  //= require bootstrap
  //= require bootstrap-typeahead
  //= require_tree .
  </code></pre>
  
  <p>But it seems that he's using the typeahead function defined on bootstrap.min.js instead of the new one.</p>
  
  <p>How can I point him to use the right file?</p>
  
  <p>ps: I'm using other bootstrap javascripts plugins so I can't just delete bootstrap.min.js</p>