Handling errors with the (now default) Ember Data JSON-API adapter

Note the answer below is based on the following versions: DEBUG: ——————————- ember.debug.js:5442DEBUG: Ember : 1.13.8 ember.debug.js:5442DEBUG: Ember Data : 1.13.9 ember.debug.js:5442DEBUG: jQuery : 1.11.3 DEBUG: ——————————- The error handling documentation is unfortunately scattered around at the moment as the way you handle errors for the different adapters (Active, REST, JSON) are all a bit … Read more

Ember-data embedded records current state?

Using the ActiveModelSerializer you can include the EmbeddedRecordsMixin which allows you to use embedded records. (In the canary versions, 1.0 beta 9+, you can use the JsonSerializer/RESTSerializer as well) Serializer App.ColorSerializer = DS.ActiveModelSerializer.extend(DS.EmbeddedRecordsMixin, { attrs: { foos: {embedded: ‘always’} } }); Models App.Color = DS.Model.extend({ color: DS.attr(), foos: DS.hasMany(‘foo’) }); App.Foo = DS.Model.extend({ name: DS.attr() … Read more