title: How to dynamically update client in rails when data in database changes?
body: <p>I would like the data on a page to update as soon as it changes in database.
  Is there a way I can trigger some event on server when data changes and send it to the client?</p>
  
  <p>For example a user might see the number of friend requests he has and that number should update in realtime if some other user adds that user as a friend.</p>