Ruby on Rails

Observers

<!--Implement a live search: update as the user types-->
Live Search: <%= text_field_tag :searchtext %>

<%= observe_field(:searchtext,
      :frequency => 0.25,
      :update => :search_hits,
      :url => { :action => :live_search }) %>

<p>Search Results:</p>
<div id="search_hits"></div>

José M. Vidal .

16 of 16