Hublot makes Facebook-style datetime-contextual datetimes a cinch for your ActiveRecord objects.
just now
10 seconds ago 2 minutes ago
Today at 5:30PM
Yesterday at 5:30PM
Monday at 5:30PM
Last Monday at 5:30PM
Monday, July 1 at 5:30PM
gem "hublot", "~> 0.0.6"
Call the pretty method in your views:
<%= @comment.created_at.pretty %>