title: Patch request with angular.js is send to wrong url
body: <p>My REST API is configured to accept this kind of request</p>
  
  <pre><code>public function lockUserAction($slug)
  {} // "lock_user"     [PATCH] /users/{slug}/lock
  </code></pre>
  
  <p>So sending a patch request to</p>
  
  <pre><code>/api/users/2/lock
  </code></pre>
  
  <p>Will lock the user with id=2. This is my rest service inside angular.js</p>
  
  <pre><code>angular.module('UserService',['ngResource']).factory('User', function($resource){
      var User = $resource('/api/users/:id',
          {},
          { 
            list: { method: 'GET' },
            lock: { method: 'PATCH' }
          }
      );   
      return User;
  });
  </code></pre>
  
  <p>List works just finde, but lock does not work. The console prints:</p>
  
  <pre><code>PATCH /api/users 405 (Method Not Allowed) 
  </code></pre>
  
  <p>I invoke it like this</p>
  
  <pre><code>$scope.lock = function(user){
      user.$lock();
  }
  </code></pre>
  
  <p>In the error message I see the url <code>/api/users</code> instead of <code>/api/users/2/lock</code>. Is this normal behaviour? Of course list excepts only GET requests and PATCH requests are not allowed on <code>/api/users</code> only on <code>/api/users/{slug}/lock</code>.</p>
  
  <p>Any ideas why /api/users is called and not /api/users/{slug}/lock. Any ideas how to fix this?</p>