Re: How to delete nested resource?

szimek
Fri, 21 Mar 2008 13:30:47 -0000

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.
>
>         Sorry my poor English.
>
>         Best regards,
> --
> Davi Vidal
> --
> E-mail: davivi...-UiHwsRqXctc1RhZgQKG/ig@public.gmane.org
> MSN   : davivi...-uAjRD0nVeow@public.gmane.org
> GTalk : davivi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
> Skype : davi vidal
> YIM   : davi_vidal
> ICQ   : 138815296

Thanks, but I have specified the relationship: News has_one :asset,
Asset belongs_to :news.

BTW. I''m using edge rails 67328 and not 2.0.2 version.
--~--~---------~--~----~------------~-------~--~----~
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