Re: Routing error (route not found) but only for destroy action.

Frederick Cheung
Tue, 23 Aug 2011 13:16:08 -0000

On Aug 23, 1:49 am, 7stud --
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:
>
> > or polymorphic_path(item_to_delete) (which is what gets called if you
> > do button_to(''delete'', item_to_delete, :method =>
''delete'') )
>
> So what you are saying is that rails automatically does all that for you
> under the hood--if you specify a model object for the path in
> button_to()?

Yes.