title: Real time with Rails
body: <p>I'm looking for a good way to implement real time feed for my users on a Rails app (Phusion passenger server). Each feed can be different depending on the user and I expect to have one new item every 20 - 60s. Periodic ajax request doesn't look like the best way to do it for me.</p>
  
  <p>I heard about Comet and I thought about having something like this: 
  - Using a XMLHttpRequest long polling to wait for a ping from the server
  - Once the server sends a ping request the latest items with ajax
  - Start another XMLHttpRequest</p>
  
  <p>Is there something wrong with this? Are there easier and better ways to do that?</p>
  
  <p>Thanks,
  S.</p>