Problems with link_to to delete a resource

Hi,

I’ve got Users and Mates in my RoR Application.
A mate is a User and is descriped through a relationship.
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?

2010/1/8 LeonS [email protected]:

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