ember-cli-101-errata
ember-cli-101-errata copied to clipboard
Top of Page 43, clarification
On the top of page 43, you state "To support deletion on friends show route, we just need to add the same link with the action delete and implement the action."
The action in the index.hbs is as follows:
<a href="#" {{ action "delete" friend}} >Delete</a>
However, you can't just copy that into the show.hbs, it needs to pass the model object in as below:
<a href="#" {{ action "delete" model}} >Delete</a>
Do you by any chance mean "you can't just copy that into the index.hbs"?