Sha256: 328681372e8f68d580b7256f21371b0bcc21092aded7e87587a840c409c2edf5
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 Bytes
Contents
= \Hublot Hublot makes Facebook-style datetime-contextual datetimes a cinch for your ActiveRecord objects. == Examples ==== Comment created just now: just now ==== Comment created seconds or minutes ago 10 seconds ago 2 minutes ago ==== Comment created today Today at 5:30PM ==== Comment created yesterday Yesterday at 5:30PM ==== Comment created this week Monday at 5:30PM ==== Comment created last week Last Monday at 5:30PM ==== After that: Monday, July 1 at 5:30PM == Use gem "hublot", "~> 0.0.4" Call the pretty method in your views: <%= @comment.created_at.pretty %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hublot-0.0.6 | README.rdoc |
hublot-0.0.5 | README.rdoc |