AJAX in Rails - doing simple looping to update information when available

Posted by Acidburn2k on Stack Overflow See other posts from Stack Overflow or by Acidburn2k
Published on 2010-03-24T08:52:28Z Indexed on 2010/03/24 9:13 UTC
Read the original article Hit count: 274

I am trying to get put out a simple site, which would pool the database every few seconds and update the information on the page dynamicly, when theres something new inserted.

I am farily new to ruby, but I understand the whole concept of RJS, link_to_function and soforth. The question is, what is the best way how to implement some kind of simple loop, which would run after the page is loaded and update the DOM if there is something new to display.

Thanks in advance for any tips!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about AJAX