title: Rails 4 : Input text box to search without submit button on index page
body: <p>In my rails application on Customer index page I need a text input box without a submit button next to it. I just want to type customer number inside it and on pressing enter button the search should work. How to implement it ?</p>
  
  <pre><code>            &lt;div class="row"&gt;
                &lt;%= form_tag customers_path, :method =&gt; 'get', class: 'input-group'  do %&gt;
                  &lt;%= text_field_tag :search, params[:search], class: 'form-control', placeholder: 'Search Customers' %&gt;
                  &lt;span class="input-group-btn"&gt;
                    &lt;%= submit_tag "search", class: "btn btn-success btn-md" %&gt;
                  &lt;/span&gt;
                &lt;% end %&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>I have placed it on top of my index page of customers page just above the customer number column, So I don't want this search box plus the button to take a big space in my view. So I don't need the submit button. Or is there any way to replace the search button with a right pointing arrow button(bootstarp) to save space in my view.</p>