Rails Hotwired Cart Displays Incorrectly

@rubys

Agile Web Development With Rails 7: Can’t get Cart model to disappear quietly (page 163)

Hi all,

I’m trying to do the exercise in AWDWR that suggests that you get the cart to be removed with a Turbo Stream request, rather than a full page refresh. I got the cart to where it is removed from the page when Empty Cart is clicked, but now it says “Content missing” until I either refresh the page or add items into the cart. I must be missing something important, does anyone know what it could be?

Thanks for the help!

1 Like