title: AngularJS: PUT send data with URL but not as JSON data
body: <p>Here is my <code>UserService</code></p>
  
  <pre><code>angular.module('userServices', ['ngResource']).factory('User', function($resource) {
    return $resource('/users/:userId',
        // todo: default user for now, change it
        {userId: 'bd675d42-aa9b-11e2-9d27-b88d1205c810'},
        {update: {method: 'PUT', params:{profile: '@profile'}, isArray: false}}
    );
  });
  </code></pre>
  
  <p>In my controller, I do</p>
  
  <pre><code>$scope.save = function() {
      $scope.user.$update({profile: $scope.profile});
  }
  </code></pre>
  
  <p>But when I see the Network Tab in Chrome, I see</p>
  
  <pre><code>Request URL:http://localhost:5000/users/bd675d42-aa9b-11e2-9d27-b88d1205c810?profile=%5Bobject+Object%5D
  Request Method:PUT
  Status Code:200 OK
  </code></pre>
  
  <p>How can I send this as <code>data</code> payload? so that <code>URL</code> is </p>
  
  <pre><code>http://localhost:5000/users/bd675d42-aa9b-11e2-9d27-b88d1205c810
  </code></pre>
  
  <p>and data goes as </p>
  
  <pre><code>{
    day_in_month: 5
  }
  </code></pre>
  
  <p>My endpoint expects the data to be part of request, so that it can parse it as <code>request.json</code></p>
  
  <p>Thank you</p>