Sorry for yet another question about redirecting from form submissions, but I’ve tried everything I can find in previous answers and I’m still not able to make this work. I’m trying to have a form which redirects on successful submission, but only updates parts of the page on failure (the part with the form).
Using a turbo-frame, I can get the latter working but the browser then doesn’t follow redirects. I can add target=’_top’ which fixes redirects, but then invalid form submissions redraw the entire page, not just the form.
I’ve created an example app here: GitHub - aa365/turbo-test . The code in question lives in app/views/widgets and widgets_controller.rb