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

Hello

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.

http://timeago.yarp.com/

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