ember.js icon indicating copy to clipboard operation
ember.js copied to clipboard

Ember Release rc4 + ember-data 0.13 unable to load all data

Open shonsaoji opened this issue 13 years ago • 3 comments

The latest version of Ember is unable to load data from the API. Following is the result as seen on JS console.

v = App.Vertical.find() Class {type: function, store: Class, isLoaded: true, isUpdating: true, constructor: function…} v.objectAt(0) Class {id: null, store: Class, _reference: Object, _changesToSync: Object, transaction: Class…}

v1 = App.Vertical.find(1) Class {id: "1", store: Class, _reference: Object, stateManager: Class, _changesToSync: Object…}

Can you please help?

shonsaoji avatar Jun 01 '13 16:06 shonsaoji

+1.

RC4 and RC5 are totally boned when trying to do the basic youtube tutorial.

@shonsaoji , I had to go grab the libs from https://github.com/tildeio/bloggr-client/tree/master/js/libs to get it to finally work.

erickyellott avatar Jun 01 '13 21:06 erickyellott

I am using ruby on rails with include_root_in_json set to true.. The response format for json is

{
  verticals:[{
    verticals: {id: 1, name: vertical_one},
    verticals: {id: 2, name: vertical_two},
  }]
};

To handle this I had to change - line 7081 in function -- in extractMany method var reference = this.extractRecordRepresentation(loader, type, objects[i]); <-- changed this to pass objects[i][root] to the method.

That fixed it for me.

shonsaoji avatar Jun 01 '13 22:06 shonsaoji

this seems like and ember-data bug, can you reopen there?

stefanpenner avatar Jun 01 '13 23:06 stefanpenner