please take a look here: http://twitter.com/#!/techcrunch
Notice that time is displayed with the following logic:
created_at
, is under 24hrs, it display XXX hours ago, or 1 hour agocreated_at
, is over 24hrs, it display the X FebDoes Rails have this capability built in or is a helper needed? If so, what's the smart way to solve for this type of output?
Thanks
You are probably looking for the time_ago_in_words helper method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With