Rails 7: Form will not submit until page reloaded

Jun 04, 22

Problem: When attempting to submit a form, the ‘submit’ button does not appear to work.

(bad) Solution: user refreshes the page, then refills the form and submit… it works!

(better) Solution: Check the form partial/view. Make sure the HTML is valid 🤦

Sincerely, Edd - wasted 1 hour trying to diagnose a ‘turbo’ issue….

It was a missing <div> in the form :cry