Updating Song Ratings

You’ll learn to update the song's rating on the backend in this lesson.

We'll cover the following

Adding an action handler

The current action that handles clicking a star is dead-simple: it just updates the song’s rating using the set template helper. We’ll need to make it more complicated because it needs to update the song’s rating on the backend, too. This means we’ll have to write an action handler function and make the following changes in the code:

Get hands-on with 1200+ tech skills courses.