title: Angularjs $resource query method working but get method not working
body: <p>Here is my factory method:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>.factory('lettersFactory', ['$resource', function ($resource) {
   var url = "";
      if(ionic.Platform.isAndroid()){
          url = "/android_asset/www/";
      }
      return $resource(url + 'data/letters.json');
  }])</code></pre>
  </div>
  </div>
  </p>
  
  <p>And here is the controller:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>.controller('LettersCtrl', ['$scope','lettersFactory', '$stateParams', '$state', '$ionicPopover', function($scope, lettersFactory, $stateParams, $state, $ionicPopover) {
      
        $scope.letters = lettersFactory.query();
        $scope.letter = lettersFactory.get({number:parseInt($stateParams.letterId, 10)});
  }])</code></pre>
  </div>
  </div>
  </p>
  
  <p>And here is the Error message:</p>
  
  <blockquote>
    <p>Error in resource configuration for action <code>object</code>. Expected response to contain an array but got an GET (Request: data/letters.json {4})</p>
  </blockquote>
  
  <p>And my letter.json is an array like this:</p>
  
  <pre><code>[
  
  {"number":1,
      "title": "title",
      "content": "content"},
  {"number":1,
      "title": "title",
      "content": "content"}
  ]
  </code></pre>
  
  <p>Thanks</p>