In the app I'm working on, I have a form that is defined in the following manner:
= form_with model: project, remote: true, method: :put do |f|
= f.select :selected_draw, options_for_select(project.draws.pluck(:number, :id), draw.id), {}, class: 'form-control', onchange: "this.form.submit()"
Even though I am using remote forms elsewhere in my application and the data-remote
attribute is being set on this particular form, I am unable to get it to submit as a remote form. Can someone please advise me on where I might be going wrong?