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?