title: link_to update (without form)
body: <p>I want a link to update a resource, without using an HTML form.</p>
  
  <p><strong>Routes:</strong></p>
  
  <pre><code>resources :users do
    resources :friends
  end    
  </code></pre>
  
  <p><strong>Rake routes:</strong></p>
  
  <pre><code> user_friend GET /users/:user_id/friends/:id(.:format){:action=&gt;"show", :controller=&gt;"friends"}
               PUT /users/:user_id/friends/:id(.:format){:action=&gt;"update", :controller=&gt;"friends"}
  </code></pre>
  
  <p>I want to use the put to update a friend by a simple link, something like this:</p>
  
  <pre><code>&lt;%= link_to "Add as friend", user_friend_path(current_user, :method=&gt;'put') %&gt;
  </code></pre>
  
  <p>But when I click the link, it tries to go into the show action.</p>
  
  <p>What is the right way to do this?</p>