Open drewclauson opened 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>
Do you by any chance mean "you can't just copy that into the index.hbs"?
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:
However, you can't just copy that into the show.hbs, it needs to pass the model object in as below: