| Module | Rails::Timeago::Helper |
| In: |
lib/rails-timeago/helper.rb
|
Create a time tag usable for jQuery timeago plugin.
timeago_tag Time.zone.now
=> "<time datetime="2012-03-10T12:07:07+01:00"
title="Sat, 10 Mar 2012 12:07:07 +0100"
data-time-ago="2012-03-10T12:07:07+01:00">2012-03-10</time>"
Available options:
All other options will be given as options to tag helper.