2010/1/8 LeonS
<leonard.stellbrink-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> Hi,
>
> I''ve got Users and Mates in my RoR Application.
> A mate is a User and is descriped through a relationship.
How have you specified the relationship?
Out of interest what are the fields of each object?
Colin
> So, i''ve got a Users Comntroller and a Mate Controller.
> How do i link do the destroy method of the Mate Controller?
> If i try to do it like that:
> <%= link_to ''Destroy'', mate, :confirm =>
''Are you sure?'', :method
> => :delete %>
> It routes me to the Route of the User Controller, but there is no
> Destroy method and i''dont
> want to delete a User, i only want to remove the relationship.
> Where''s the problem with the link?
>
> --
> 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@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>
>
--
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
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.