https://github.com/mamantoha/humanize_time
Adds the humanize method to reports the approximate distance in time between two Time. humanize supports i18n translations too so it can be used in internationalized apps.
require "humanize_time"
HumanizeTime.distance_of_time_in_words(42.minutes.ago, Time.now)
HumanizeTime.distance_of_time_in_words(3.seconds.ago, Time.now, include_seconds: true)