pluralize(0, ''people'') = 0 peoples Just thought I''d let you guys know. I''m new here so I don''t know if this is in the right section, but ya. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
That''s because ''people'' is already plural. From the api: pluralize(count, singular, plural = nil) Try this: pluralize(0, ''person'') Aaron --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
njmacinnes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-16 10:29 UTC
Re: pluralize(0, ''people'') error
Well, people can be singular or plural. It can be the plural of person or it can describe a single group. The most famous example of this is in Martin Luther King''s famous speech: "...But I want you to know tonight, that we, as a people, will get to the Promised Land." Rails gets it right in either case. Clever rails. -Nathan P.S. Also try this: "people".singularize On 16/02/07, Aaron <baldwina-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > That''s because ''people'' is already plural. From the api: > > pluralize(count, singular, plural = nil) > > Try this: > pluralize(0, ''person'') > > Aaron > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Nathan :> Well, people can be singular or plural. It can be the plural of person > or it can describe a single group. The most famous example of this > is in Martin Luther King's famous speech: > "...But I want you to know tonight, that we, as a people, will get to the > Promised Land." > > Rails gets it right in either case. Clever rails.Is Rails the Promised Land ? :) -- Jean-François. -- À la renverse. --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---
Jean-François wrote:> Is Rails the Promised Land ? :)Rails _are_ the Promised Land... (Now try to write a paper about it with a grammar checker, folks!) -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Phlip wrote:> Jean-François wrote: > > >> Is Rails the Promised Land ? :) >> > > Rails _are_ the Promised Land... > > (Now try to write a paper about it with a grammar checker, folks!) > >Shouldn''t it be: Rails are the Promised Lands --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Try using pluralize(0, ''person''). Pluralize expects the singular as the argument, not the plural. Niels On Feb 15, 2007, at 11:35 PM, ralxz wrote:> > pluralize(0, ''people'') = 0 peoples > > Just thought I''d let you guys know. I''m new here so I don''t know if > this is in the right section, but ya. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
0 peoples is actually correct plural for people, as in nation or ethnicity. ;) RSL On 2/17/07, Niels Meersschaert <nmeersschaert-ee4meeAH724@public.gmane.org> wrote:> > > Try using pluralize(0, ''person''). Pluralize expects the singular as > the argument, not the plural. > > Niels > > On Feb 15, 2007, at 11:35 PM, ralxz wrote: > > > > > pluralize(0, ''people'') = 0 peoples > > > > Just thought I''d let you guys know. I''m new here so I don''t know if > > this is in the right section, but ya. > > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---