title: Ruby on Rails. How to combine a search form with bootstrap style?
body: <p>How to combine this search form</p>
  
  <pre><code>&lt;%= form_tag index_path, :method =&gt; 'get'  do %&gt;
    &lt;%= text_field_tag :search, params[:search]%&gt;
    &lt;%= submit_tag "search", :title =&gt; nil %&gt; 
  &lt;% end %&gt;
  </code></pre>
  
  <p>with this bootstrap style</p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;div class="input-group"&gt;
        &lt;input type="text" class="form-control" placeholder="Search for..."&gt;
        &lt;span class="input-group-btn"&gt;
          &lt;button class="btn btn-default" type="button"&gt;search&lt;/button&gt;
        &lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>