ember-cli-101-errata icon indicating copy to clipboard operation
ember-cli-101-errata copied to clipboard

Top of Page 43, clarification

Open drewclauson opened this issue 9 years ago • 1 comments

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>

drewclauson avatar Sep 03 '15 18:09 drewclauson

Do you by any chance mean "you can't just copy that into the index.hbs"?

tchan avatar Jan 25 '17 06:01 tchan