This may be the shortest chapter. Deleting in Ember is typically handled by an action.
Open up the
lead template and add a delete link immediately above the submit button:
Template actions are handled in the controller, so open up the
LeadController and add a
destroyRecord() on the model, which sends a
DELETE request to the server. After we delete the record we need to transition back to the
And that’s it!
Next I’ll cover adding a new lead.