Hi All,
Here is the code I am using
<%= periodically_call_remote :update => “news_div”, :url => { :action => “get_news”}, :frequency => “5” %>
this is my method get_news
def get_news @news = News.find(:all, :conditions => [“status => ?”, “Active”], :order => “created_at DESC”, :limit => 5) end
/views
<% for news in @news %> <%= news.title %> <% end %>
I want results to be displayed one by one not all at a time. What to do? I am stuck here, please help.