Is this a ready made function in Ruby and/or Rails to display something like "20 minutes ago" with a given date and the current date? Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
time_ago_in_words is the function you''re looking for. E.g., Last Post: <%= time_ago_in_words %> ago jbeduya wrote:> > > Is this a ready made function in Ruby and/or Rails to display something > like "20 minutes ago" with a given date and the current date? > > Thanks in advance. >-- View this message in context: http://www.nabble.com/-Rails--Seconds-Minutes-Days-Ago-tf2620153.html#a7312171 Sent from the RubyOnRails Users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you so much! Ruby on Rails Rocks! -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of s.ross Sent: Monday, November 13, 2006 2:38 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: Seconds/Minutes/Days Ago time_ago_in_words is the function you''re looking for. E.g., Last Post: <%= time_ago_in_words %> ago jbeduya wrote:> > > Is this a ready made function in Ruby and/or Rails to display > something like "20 minutes ago" with a given date and the current date? > > Thanks in advance. >-- View this message in context: http://www.nabble.com/-Rails--Seconds-Minutes-Days-Ago-tf2620153.html#a73121 71 Sent from the RubyOnRails Users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---