title: querying in angularjs returns much more than expected
body: <p>I am trying to extract all the users from my rails app</p>
  
  <p>this is in my javascript file:</p>
  
  <pre><code>var app = angular.module('app');
  app.factory('User', function($resource) {
      return $resource('/users/:id', {id: '@id'});
  });
  
  app.controller('UsersCtrl', ['$scope', 'User', function($scope, User) {    
  
      $scope.users = User.query();
  
  });
  </code></pre>
  
  <p>However, when i try to use $scope.users in my views for my rails app, it shows an array of around 10000 when currently i have only one user. (It should only have one element in the array)</p>
  
  <p>When i inspect $scope.users, it seems that is the html of that page</p>