Short question: Is there any way to have a form without a redirect and without triggering this error “Form responses must redirect to another location”?
Long question: In my app I am using this gem https://github.com/jorgemanrubia/turbolinks_render, essentially it replaces the whole body with the html returned by the server. So with this gem form validation errors are non issue. (this is useful for other things too, not only validation) I can even make it work for devise auth controllers without actually editing any devise code. Without this gem, it seems like I would have to add respond_to turbo_stream
in every form, which would be a lot of work. I thought I could create a stimulus controller that does a similar thing, since we now have form submission events. But without redirect, we get the error “Form responses must redirect to another location”. Is there any workaround to this?