abuiles / ember-cli-101-errata

18 stars 4 forks source link

Top of Page 43, clarification #252

Open drewclauson opened 8 years ago

drewclauson commented 8 years ago

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>
tchan commented 7 years ago

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