On Thu, May 26, 2011 at 11:26 PM, Avram Dorfman <li...@ruby-forum.com>wrote:

> > ruby-1.8.7-p334 :004 > "regatta".singularize
> >  => "regattum"
> > ruby-1.8.7-p334 :005 >
> >
> > So, no dice. Annoying and stange, huh?
>
> RIght, no dice.
>
> At this point I have wrapped the Inflections module to manually return
> the correct results for "regatta" and "regattas" and then just call back
> to the original for anything else. That is actually working, but
> oh-my-god is it a stupid ridiculous hack to have to put into place.
>

Yeah, when I saw your email and I did also start poking around in active
support > inflections and it just makes no sense. If you add a rule
supposedly it should take precedence to all existing code. The only thing I
could come up with is that Inflections thinks that 'regatta' is a plural and
for some reason that decision takes precedence over any rule added. I know
it may not make sense for you but I would consider changing the name of the
model just to please Inflections..... how about 'SailBoatRace'?... we can go
the way of euphanisms to avoid irregulars :)

>
> --
> 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@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to