Updating ID after createRecord

I have a Room model

App.Room = DS.Model.extend({
  name         : DS.attr(),
  url          : DS.attr(),
  created_at   : DS.attr(),
  updated_at   : DS.attr(),
  messages: DS.hasMany('message',{async:true})

I am saving new records client side like this:

var room =   {name: 'happy day'} ;
this.store.createRecord('room', room).save();

My custom adapter with JSONSerializer is resolving this JSON from the server:


However, the ID is not being updated upon store.createRecord().

Can you spot anything wrong here?

I changed to

App.ApplicationSerializer = DS.RESTSerializer;

and it works.

Feel free to delete this topic :slight_smile: