Re: How to delete nested resource?

Davi Vidal
Fri, 21 Mar 2008 13:51:35 -0000

Em Friday 21 March 2008, szimek escreveu:
> On Mar 21, 12:41 pm, Davi Vidal
<davivi...-UiHwsRqXctc1RhZgQKG/ig@public.gmane.org> wrote:
> > Em Friday 21 March 2008, szimek escreveu:
> > [...]
> >
> > > The generated url is "/admin/news/
> > > 23/asset?id=35", but it should be enough for rails to figure
out ID of
> > > the asset even with url like this
"/admin/news/23/asset".
> >
> >         Only if news has_one asset. Otherwise, Rails can''t
figure out
> > which of N assets you want to delete.
[...]
>
> Thanks, but I have specified the relationship: News has_one :asset,
> Asset belongs_to :news.
>

	Sorry. I missed the point here. You''re right.

	Best regards,
--
Davi Vidal
--
E-mail: davividal-UiHwsRqXctc1RhZgQKG/ig@public.gmane.org
MSN   : davividal-uAjRD0nVeow@public.gmane.org
GTalk : davividal-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Skype : davi vidal
YIM   : davi_vidal
ICQ   : 138815296

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