% form_tag('javascript:void(0)') do %>
Listing users
<%= text_field_tag 'search', @search %>
<%= observe_field :search, #
:frequency => 0.5, #
:update => 'ajaxWrapper', #
:before => "Element.show('spinner')", #
:complete => "Element.hide('spinner')", #
:url => {:action=>'search', :only_path => false}, #
:with => "'search=' + encodeURIComponent(value)" %>
<% end %>
<%= render :partial=>'search' %>