You might find relative_time_ago referenced in the Padrino Guides or Padrino Helpers RDocs, but that doesn’t exist.

According to the Application Helpers guides, you probably want distance_of_time_in_words or time_ago_in_words.


  = time_ago_in_words(my_date)

For reasons I don’t quite understand, this documentation is also incorrect:

time_ago_in_words(2.days.ago) # => "2 days ago"

The actual behavior is:

time_ago_in_words(2.days.ago) # => "2 days"

I’m planning to move some of this into the padrino-framework project directly. Incorrect documentation is worse than no documentation; maybe it will be more accurate if kept in the code. :)