Cannot Save Model When Using Ember Render Helper
I'm rendering a model into a parent template like this: {{render 'teacher' teacher}} Here's it's controller: App.TeacherController = Ember.ObjectController.extend(App.EditableMode
Solution 1:
It appears as if that model is a PromiseObject (from an async mapping). Promise objects are an extension of Ember.ObjectProxy which will proxy property calls down to the real model if it exists, but the methods aren't proxied.
var modelPromise = this.get('model');
modelPromise.then(function(actualModel){
actualModel.save();
});
Post a Comment for "Cannot Save Model When Using Ember Render Helper"