title: Error: $resource:badcfg Unable to update user data with ngResource
body: <p>I am trying to edit a resource and display the user data on my edit form. All of my other CRUD operations are working except for update. Can someone help me understand and correct this error:</p>
  
  <p>Error: $resource:badcfg Response does not match configured parameter</p>
  
  <p>Here is the code:</p>
  
  <pre><code>form.adults.html
  
  &lt;td&gt;&lt;a ui-sref="form.adults-edit()"&gt;&lt;button class="btn btn-primary btn-sm"&gt;Edit&lt;/button&gt;&lt;/a&gt;&lt;/td&gt;
  
  app.js
  
  var app = angular.module("LunchApp", ["ngVidBg", "ngAnimate","ui.router",'ngResource']);
  app.config(function($stateProvider,$urlRouterProvider) {
  
    $stateProvider
  
   .state('form.adults-edit', {
      url: '/adults/{{adult._id}}/edit',
      controller: "EditAdultController",
      templateUrl: "views/a-edit.html"
    })
  
   $urlRouterProvider.otherwise('login');
    });
  
  services.js
  
  app.service("AdultService",['$resource', function($resource){
      return $resource('/api/adults/:id', {id: '@_id'}, {
          update : {
              method: 'PUT'
          }
      });
  }]);
  
  controllers.js
  
  app.controller("EditAdultController", function($scope, $location, $stateParams, AdultService){
    AdultService.get({id: $stateParams.id},function(adult){
      $scope.adult = adult;
      console.log(adult);
    }, function(err){
      $state.go('form.adultsInHousehold1');
    });
    $scope.editAdult = function(adult){
      console.log("This is working!");
      $scope.adult.$update(function(){
         $state.go('form.adultsInHousehold1');
      });
    };
  });
  </code></pre>