ember.js - Why am I getting an error after successful deleteRecord in Ember -
i error after calling deleterecord , save on entity. i'm using ds.restadapter , delete works in backend console throwing error
error: no model found 'id' @ new error (native) @ error.ember.error (http://localhost:3000/assets/ember.js?body=1:913:19) @ ember.object.extend.modelfor (http://localhost:3000/assets/ember-data.js?body=1:9808:33) @ jsonserializer.extend.extractsingle (http://localhost:3000/assets/ember-data.js?body=1:3021:28) @ superwrapper [as extractsingle] (http://localhost:3000/assets/ember.js?body=1:1295:16) @ ember.object.extend.extractsave (http://localhost:3000/assets/ember-data.js?body=1:2511:21) @ ember.object.extend.extractdeleterecord (http://localhost:3000/assets/ember-data.js?body=1:2468:21) @ ember.object.extend.extract (http://localhost:3000/assets/ember-data.js?body=1:2368:37) @ http://localhost:3000/assets/ember-data.js?body=1:10436:32 @ invokecallback (http://localhost:3000/assets/ember.js?body=1:10016:19) ember.js?body=1:3524
uncaught error: assertion failed: error: no model found 'id'
app.userroute = ember.route.extend({ actions: { deletetag: function(params) { this.get('store').find('usertag', params.id).then(function(rec){ rec.deleterecord(); rec.save(); }); } } });
why ember trying return factory instance of model called "id" ?
thanks!
dumb mistake. error json returned destroy method missing object root.
Comments
Post a Comment