Hi: I''m using the time_ago_in_words in words function. Is there anyway to get it to register only in days - some options I''m not setting? Meaning to display in days only, so instead of going to a month, year, etc., to register a #of days? I looked in the api for the function and don''t see it. If not, is there another function of which I''m not aware? Thanks so much in advance! Mike -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
Hi, I remember seeing this as a new feature in Rails 1.2 bundled ActiveSupport library. Regards, Oyku. On 18.Şub.2007, at 15:54, Mike Dershowitz wrote:> > Hi: > > I''m using the time_ago_in_words in words function. Is there anyway to > get it to register only in days - some options I''m not setting? > Meaning > to display in days only, so instead of going to a month, year, > etc., to > register a #of days? I looked in the api for the function and > don''t see > it. > > If not, is there another function of which I''m not aware? > > Thanks so much in advance! > > Mike > > -- > Posted via http://www.ruby-forum.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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
jamiequint-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-18 16:38 UTC
Re: time_ago_in_words in days only?
Rails Pre-1.2 did this, you could grab the old time_ago_in _words and use it to override the new one in your app. ~Jamie On Feb 18, 5:54 am, Mike Dershowitz <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi: > > I''m using the time_ago_in_words in words function. Is there anyway to > get it to register only in days - some options I''m not setting? Meaning > to display in days only, so instead of going to a month, year, etc., to > register a #of days? I looked in the api for the function and don''t see > it. > > If not, is there another function of which I''m not aware? > > Thanks so much in advance! > > Mike > > -- > Posted viahttp://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---
jamiequint-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> Rails Pre-1.2 did this, you could grab the old time_ago_in _words and > use it to override the new one in your app. > > ~Jamie > > On Feb 18, 5:54 am, Mike Dershowitz <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Hi Jamie: Thanks very much for your reply. Are you talking about extending and overriting time_ago_in_words or is there some parameter that would do it? Thanks again! Mike -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---