I'm using Ember Data with the RESTful adapter with a rails backend.
When I delete a record from Ember record.deleteRecord(); record.save()
the DELETE
request goes to the server and the model is deleted, but this error is printed to the javascript console:
Extract requested, but no data given for App.ThisModel. This may cause weird problems.
The response from the server was just render json: true
, so I changed it to render json: deleted_model
which renders the json for the deleted record.
That got rid of the previous error, but now the deleted record is recreated in Ember.
What does Ember expect in the response?