Dynamical refresh div with in rails

I have tried many solution for making dynamical refersh div with rails.
I want to make like time posting i facebook. For example


2 minutes ago

I want time posting (“time minutes ago”) auto refersh and update real
time do you have solution ?

No rails necessary.

Check out the timeago jQuery plugin.


Yes but i have got problem, when i post my form with ajax. I think
timeago can read my new posting.