Generate local forms with form_with by default

We're not replacing `form_for` with `form_with` for now, and even if we
did, most of our forms are not remote, so making them remote by default
would be inconvenient.
This commit is contained in:
Javi Martín
2020-09-05 14:51:02 +02:00
parent 905ac48bb9
commit 5c0ba0b04c

View File

@@ -14,7 +14,7 @@ module Consul
# Rails 4 models worked
config.active_record.belongs_to_required_by_default = false
# Overwrite Rails 5.1 defaults and use the options we used in Rails 5.0
# Use local forms with `form_with`, so it works like `form_for`
config.action_view.form_with_generates_remote_forms = false
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.