Infinity Loop in background in html.erb - how?

19 views
Skip to first unread message

rusik

unread,
Dec 2, 2013, 9:28:24 AM12/2/13
to rubyonra...@googlegroups.com
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 ....
Reply all
Reply to author
Forward
0 new messages