How to make infinity loop in background? In my application.html.erb i want to make this endless:(get_dialogs and the subscribe_to)
> <% user.get_dialogs do |dialog| %> > <%= subscribe_to "/dialogs/#{dialog[:id]}" %> > <% end %> Of`course, on client side i am using setInterval , but on server side .... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/13dde921-dea3-4cd4-a272-06e0f515f1b9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.