From 5c0ba0b04c03a420b655495dd7065b74fa4ee3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sat, 5 Sep 2020 14:51:02 +0200 Subject: [PATCH] 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. --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index fa7c95470..feb4c8664 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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.