First of all, i am using Ember RC6 and Ember-Data 0.13 wit the RESTAdapter.
I am currently trying to delete Models as so:
var store = this.get('store');
App.CircleContact.find({
circle_id: this.controllerFor('circle').get('model').get('id'),
contact_id: this.get('model').get('id')
}).then(function(model) {
model.deleteRecord();
store.commit();
});
Besides controllerFor is deprecated; what for gods sake am i doing wrong? I was wondering, why i couln’t find anything with google about how to delete models. Is this a feature not implemented yet or am i just to stupid to find the right way?