August 2025
Intermediate to advanced
294 pages
6h 59m
English
We’ll round out the CRUD interface for Albums with the destroy action. We might not need to invoke it too much while using Tunez, but keeping our data clean and accurate is always an important priority.
While building the Album resource, we’ve also accidentally introduced a bug around Artist deletion, so we should address that as well.
Deleting albums is done from the artist’s profile page, TunezWeb.Artists.ShowLive, via a button next to the name of the album.
Clicking the icon will send the “destroy-album” event to the liveview. In the event handler, we’ll fetch the album record from the list of albums we already have in memory and then delete it. It’s a little bit verbose, but it saves another ...
Read now
Unlock full access