rails-livestamp is a simple jQuery plugin that makes it easy to provides automatically updating text to your timestamped HTML elements.
Add this line to your application’s Gemfile:
And then execute:
Or install it yourself as:
To use rails-livestamp add this require statement to your application.js file:
If you use ERB:
If you use HAML:
And you will see something like this:
Wait half a minute - the livestamp will update automatically.