RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: henrymazza
On REVISION: 12 it's not needed anymore. obj.deleteRecord() would suffice.
Ok. Found it!
<a href="#" {{action removeItem this}}>x</a>
Raffler.EntriesController = Ember.ArrayController.extend # include the following method. removeItem: (obj) -> obj.get('content').deleteRecord() @store.commit()
My issue was that I was not calling 'deleteRecord()' on the 'content'.
What is the proper way to delete an Entry?
On REVISION: 12 it's not needed anymore. obj.deleteRecord() would suffice.
Ok. Found it!
My issue was that I was not calling 'deleteRecord()' on the 'content'.
What is the proper way to delete an Entry?