reset form in hotwire
Solution 1:
The controller is named reset_form_controller.js
.
However this is erroneously referenced with underscores
data: { controller: "reset_form", action: "turbo:submit-end->reset_form#reset" }
when reset form
should be with dashes
data: { controller: "reset-form", action: "turbo:submit-end->reset-form#reset" }```