title: Twitter Bootstrap Typeahead text field name attrib messes with autocomplete
body: <p>I am using the typeahead js extension from twitter bootstrap for an autocomplete field. I have a subtle problem with that. I have a text field like :</p>
  
  <pre><code>&lt;%= text_field_tag :search, params[:search], :data =&gt; { :provide =&gt; 'typeahead', :source =&gt; ...} %&gt;
  </code></pre>
  
  <p>The problem is that i have to specify name='search' (with :search), in order to be able to grab the text input search value. However, if i do so, the browser automatically creates an autocomplete history of the entries i have already tried in my text field. </p>
  
  <p>If i remove :search and replace with '', the browser cannot 'save' the history, because there is no name attribute on the text field. However, this way, i cannot get the inputted value myself.</p>
  
  <p>How can i work around this ?</p>