I have an Ember project that I had been working on where I could save my model in my route:
Ember.$.ajax({
url: config.api.baseURL + 'propzone/' + model.name,
type: 'PUT',
contentType: 'application/json',
data: JSON.stringify(model),
success: function() {
// RENDER NOTIFICATION
self.refresh();
},
error: function(err) {
alert('Error: ' + err);
}
});
This did work fine until I updated Ember and Ember-cli.
Now I'm getting this error message:
Uncaught Error: Assertion Failed: You must use Ember.set() to set the
gallery
property (of [object Object]) to ``.
Aucun commentaire:
Enregistrer un commentaire