Hi all! Is it possible to add rules to rails'' inflector so I can have posses -> posse (thinks it''s "poss") and hero -> heroes (thinks it''s "heros") Thank you! --~--~---------~--~----~------------~-------~--~----~ 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 -- On 3/16/07, Damian Terentyev <threeeyedfish-HPQIj1OAFZMvJsYlp49lxw@public.gmane.org> wrote:> > Hi all! > > Is it possible to add rules to rails'' inflector so I can have > > posses -> posse (thinks it''s "poss") > > and > > hero -> heroes (thinks it''s "heros")Yes -- see the examples at the bottom of config/environment.rb. David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.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 -~----------~----~----~----~------~----~------~--~---
On Fri, Mar 16, 2007 at 05:23:24PM +0300, Damian Terentyev wrote :> Is it possible to add rules to rails'' inflector so I can have > > posses -> posse (thinks it''s "poss") > > and > > hero -> heroes (thinks it''s "heros")Add in your environment.rb: Inflector.inflections do |inflect| inflect.irregular ''posses'', ''posse'' inflect.irregular ''hero'', ''heroes'' end P.S.: what''s poss/posses ??? -- ,========================. | Pierre-Alexandre Meyer | | email : pam-1sEOgp2Wo8Qdnm+yROfE0A@public.gmane.org | `========================'' --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 3/16/07, Damian Terentyev <threeeyedfish-HPQIj1OAFZMvJsYlp49lxw@public.gmane.org> wrote:> > Hi all! > > Is it possible to add rules to rails'' inflector so I can have > > posses -> posse (thinks it''s "poss") > > and > > hero -> heroes (thinks it''s "heros")Sounds like a pretty cool app... -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.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 -~----------~----~----~----~------~----~------~--~---
andrew.ohnstad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Mar-16 14:59 UTC
Re: How to correct pluralization?
A "posse" is a group of armed men, generally who would go out and round up a wanted criminal. Circa 1800''s in the American West. On Mar 16, 9:32 am, Pierre-Alexandre Meyer <p...-1sEOgp2Wo8Qdnm+yROfE0A@public.gmane.org> wrote:> On Fri, Mar 16, 2007 at 05:23:24PM +0300, Damian Terentyev wrote : > > > Is it possible to add rules to rails'' inflector so I can have > > > posses -> posse (thinks it''s "poss") > > > and > > > hero -> heroes (thinks it''s "heros") > > Add in your environment.rb: > Inflector.inflections do |inflect| > inflect.irregular ''posses'', ''posse'' > inflect.irregular ''hero'', ''heroes'' > end > > P.S.: what''s poss/posses ??? > > -- > ,========================. > | Pierre-Alexandre Meyer | > | email : p...-1sEOgp2Wo8Qdnm+yROfE0A@public.gmane.org | > `========================''--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Fri, Mar 16, 2007 at 02:59:25PM -0000, andrew.ohnstad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote :> A "posse" is a group of armed men, generally who would go out and > round up a wanted criminal. Circa 1800''s in the American West.Oh, yes! Party Posse feat. Bart! Yvan eht nioj.. The Simpsons are my second family. -- ,========================. | Pierre-Alexandre Meyer | | email : pam-1sEOgp2Wo8Qdnm+yROfE0A@public.gmane.org | `========================'' --~--~---------~--~----~------------~-------~--~----~ 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, thank you very much. On Mar 16, 2007, at 17:32, Pierre-Alexandre Meyer wrote:> > P.S.: what''s poss/posses ???1 : a large group often with a common interest 2 : a body of persons summoned by a sheriff to assist in preserving the public peace usually in an emergency 3 : a group of people temporarily organized to make a search (as for a lost child) 4 : entourage 1 (www.webster.com) I mean, Rails has problems guessing singular from plural here. Yours sincerely, Damian/Three-eyed Fish --~--~---------~--~----~------------~-------~--~----~ 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 Damian, the correrct pluralization for hero is heroes. Good luck, -Conrad On 3/16/07, Damian Terentyev <threeeyedfish-HPQIj1OAFZMvJsYlp49lxw@public.gmane.org> wrote:> > Hi all! > > Is it possible to add rules to rails'' inflector so I can have > > posses -> posse (thinks it''s "poss") > > and > > hero -> heroes (thinks it''s "heros") > > Thank you! > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 Damian, it seems that posse by definition is already plural. Also, there isn''t a word in the dictionary called ''posses''. This would be considered a special case where both the singular and plural form is the same, posse. Thus,>> "posse".singularize=> "posse" Thus, I would the following to your environment.rb: Inflector.inflections do |inflect| inflect.irregular ''posse'', ''posse'' inflect.irregular ''hero'', ''heroes'' end Good luck, -Conrad On 3/17/07, Conrad Taylor <conradwt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Damian, the correrct pluralization for hero is heroes. > > Good luck, > > -Conrad > > On 3/16/07, Damian Terentyev <threeeyedfish-HPQIj1OAFZMvJsYlp49lxw@public.gmane.org> wrote: > > > > Hi all! > > > > Is it possible to add rules to rails'' inflector so I can have > > > > posses -> posse (thinks it''s "poss") > > > > and > > > > hero -> heroes (thinks it''s "heros") > > > > Thank you! > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Mar 17, 2007, at 11:00, Conrad Taylor wrote:> > Hi Damian, it seems that posse by definition is already plural. Also, > there isn''t a word in the dictionary called ''posses''. This would be > considered a special case where both the singular and plural form is > the same, posse.Thanks, I''ll make it uncountable. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Mar 17, 2007, at 11:00, Conrad Taylor wrote:> Hi Damian, it seems that posse by definition is already plural.Checked Wiktionary it says plural is "posses". Well, posse is a group, but why there couldn''t be groups? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---