Re: Re: Rails'' inflections are messy

davidcelis
Tue, 07 Aug 2012 21:46:30 -0000

Guys, lets keep in mind that I meant for this discussion to be about how
the inflection rules themselves are bad. Not how they''re used
internally
with Rails, but how the file that defines these rules is an utter mess.

On Thursday, August 2, 2012 8:30:33 AM UTC-7, paulie
wrote:
>
> index: GET /media
> show: GET /media/1
> edit: GET /media/1/edit
> create: POST /media
> update: PUT /media/1
> new: GET /media/new
> delete: DELETE /media
>
> I wasn''t suggesting changing this retroactively, I was supporting
the
> idea of the inflections gem, which would allow an replacement that
> didn''t require  duplicating all the rules in javascript.
>
> On Sun, Jul 29, 2012 at 12:32 PM, Matt Jones
<al2o3cr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >
> > For bonus points, how would the new behavior distinguish between the
> ''show''
> > and ''index'' actions? (currently plural-with-no-args
vs.
> > singular-with-one-arg)
> >
> > I suspect you''re going to face a lot of pushback from all the
developers
> who
> > *have* managed to "keep it straight", since your suggestion
involves
> > breaking every one of their applications.
> >
> > --Matt Jones
>

--
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