Could be many things. Your form is also missing the data-remote="true" That is needed and you're submitting with a button. Different from what I have. When I can I'll have a look.
data-remote="true"
No it's just that since rails 6.1 you need to put local: false to submit via Ajax on the form_with
local: false
form_with
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Could be many things. Your form is also missing the
data-remote="true"
That is needed and you're submitting with a button. Different from what I have. When I can I'll have a look.No it's just that since rails 6.1 you need to put
local: false
to submit via Ajax on theform_with