Ember Release rc4 + ember-data 0.13 unable to load all data
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?
+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.
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.
this seems like and ember-data bug, can you reopen there?