--The HTML of the response returned by inputting the form and sending a POST was not rendered in the browser.
form_with(model: @form, local: true) do |f|
#inputs
end
You can specify local: true
like this.
--According to https://stackoverflow.com/a/50647776,
Forms generated with form_with by default has data-remote set to true. If the data-remote is set to true your form makes an AJAX call. So your view is getting rendered as the response of that AJAX call. That is why you are not getting any errors. Add local: true in your form_with.