Re: Rails'' inflections are messy

Matthew Johnston
Fri, 20 Jul 2012 14:13:11 -0000

On Thursday, July 19, 2012 6:53:43 AM UTC-5, paulie
wrote:
>
> I personally don''t like them at all. I wish that all the names of
> controllers/routes/models were unchanged so I wouldn''t have to
keep
> deciding whether I needed to pluralize. I remember spending too much
> time trying to straighten out a scaffold I created named
"series". It
> created a model named "Serie"! I shouldn''t have to spend
energy
> figuring that out. It should use the exact name I give it.


I agree with this some what. There have been times where I needed a
singular table name or plural model name. I know I could override which
table it points to and do a little foot work on my part.

The current state of inflections isn''t too horrible, but it should at
least
be decoupled from Rails core.

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit