title: Ember.js error: You must include an 'id' for an object passed to 'push'
body: <p>The REST API which I am using to fetch data doesn't give proper JSON as expected by Ember.js. We don't have id values in our data. </p>
  
  <pre><code>[{"objectID":"340907","owner":"Lokesh"},{"objectID":"340908","owner":"Cherukuri"}]
  </code></pre>
  
  <p>So, I created a a serializer: </p>
  
  <p><strong>serializers/baddata.js</strong></p>
  
  <pre><code>import DS from 'ember-data';
  
  export default DS.JSONSerializer.extend({
      primaryKey: 'objectID'
  });
  </code></pre>
  
  <p><strong>adapters/baddata.js</strong></p>
  
  <pre><code>import DS from 'ember-data';
  
  export default DS.RESTAdapter.extend({
      host: 'http://localhost:8080',
      buildURL : function(modelName, id) {
          return this.host + "/baddata/trains/"+ id;
      }
  });
  </code></pre>
  
  <p><strong>models/baddata.js</strong></p>
  
  <pre><code>import DS from 'ember-data';
  
  export default DS.Model.extend({
      owner: DS.attr('string')
  });
  </code></pre>
  
  <p>This did not solve the problem. Can someone correct my mistakes?</p>