link_to update (without form)
I want a link to update a resource, without using an HTML form. Routes : resources :users do resource :profile, :controller=>"profiles" resources :friends end Rake routes: user_friend GET /users/:user_id/friends/:id(.:format){:action=>"show", :controller=>"friends"} PUT /users/:user_id/friends/:id(.:format){:action=>"update", :controller=>"friends"} I want to use the put to update a friend by a simple link, something like this: <%=link_to "Add as friend", user_friend_path(current_user, :method=>'put')%> But as Rails meet that link he tries to go into the show action. The question is: what is