Friday, May 29, 2009

Adding Times Ago

We will have to make use of the timestamp created_at data that was automatically assigned when the data is created.

In the view of html.erb.
<%= time_ago_in_words(m.created_at) %> ago

0 comments:

Post a Comment