You’re not receiving notifications from this thread.
How to handle flash messages with TurboJS?
When using turbo-frame to switch from showing a partial of model to showing the form of model, how do I handle flash messages?
The failed state - for failed validation - is pretty straight forward, since I re-render the form and outlining the validation errors in the form. But when a form is successfully submitted I would like to show a message (preferably like a toast) saying the data is saved.
Any ideas how to do that in a clean way?
You can use a turbo stream to insert the flash message into a div for them. 👍
I'm actually going to do a screencast on this shortly.