Programming Phoenix LiveView: P93 - Handle Change for the Product Edit - /product v /products

There is some inconsistency in the description of the edit route in focus for the text’s example.

I believe the intent is to discuss/describe the handling of the live_action through the ProductLive.Index module. The text shows a use of the “live” macro in the router file as having the path of /product/:id/edit. This should be /products/:id/edit.

It would also be worth pointing out (somewhere) the distinct route to the other edit action via ProductLive.Show - with the different path.

Great book. Loving every minute!

Hi there! Thanks so much for your feedback. You’ll find the product/* routes fixed to read /producst/* throughout the book in the next release :slight_smile:

Regarding this question:

It would also be worth pointing out (somewhere) the distinct route to the other edit action via ProductLive.Show - with the different path.

This is actually part of the “Your Turn” exercise at the end of the Generators: Live Views and Templates chapter :slight_smile: