<h1>Listing users</h1>

<%= form_tag users_path, :class => "form-inline clearfix", :method => :get do %>
    <%= hidden_field_tag :direction, params[:direction] %>
    <%= hidden_field_tag :sort, params[:sort] %>
    <div class="input-append pull-left">
      <label for="q" class="hide-text">Search...</label>
      <input class="search_q q" id="q" name="q" placeholder="Search..." type="text">
      <button type="submit" class="btn btn-primary search-btn" id="search">
      <span class="submit-search-text">Search</span>
        <i class="icon-search icon-white"></i>
      </button>
    </div>
<% end %>

<div id="users">
<%= render "users" %>
</div>


<h1>Listing users</h1>

<%= form_tag users_path, :class => "form-inline clearfix", :method => :get do %>
    <%= hidden_field_tag :direction, params[:direction] %>
    <%= hidden_field_tag :sort, params[:sort] %>
    <p>
      <label for="q" class="sr-only">Search...</label>
      <input class="search_q q form-control" id="q" name="q" placeholder="Search..." type="text">
      <input type="submit" class="btn btn-primary search-btn" id="search" value="Search" />
    </p>
<% end %>

<div id="users">
<%= render "users" %>
</div>

Update User search for Bootstrap 3
Update User search for Bootstrap 3
