Thursday, May 29, 2008

Handy behavior driven Rails Ajax helpers

Periodically_call_remote:

periodically_call_remote(:url => 'update', :frequency => '20', :update => 'news_block')

observe_field:
<%= observe_field :suggest, :url => { :action => :find_suggestion },
:frequency => 0.25,
:update => :suggest,
:with => 'q'
%>

No comments: