Submitting forms with Turbolinks has always been pain in the ass, especially in a situation when the server responds with validation errors.
This snippet aims to solve the problem.
Resources:
- serialize() : https://vanillajstoolkit.com/helpers/serialize/