Fix create and update to work with Ember.js