I'm working on a project where we won't be using ajax calls for submitting the forms, so I need to put local: true in every form in the project, as indicated in the rails docs:
:local - By default form submits are remote and unobstrusive XHRs. Disable remote submits with local: true.
Is there any way to set the local option as true by default?
We're using Rails 5 form_with helper like this:
<%= form_with(model: @user, local: true) do |f| %>
    <div>
        <%= f.label :name %>
        <%= f.text_field :name %>
    </div>
    <div>
        <%= f.label :email %>
        <%= f.email_field :email %>
    </div>
    <%= f.submit %>
<% end %>
 
     
     
     
    