From 3185033dea30ba3fd3effb857b73ee02675947ea Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 17 Aug 2021 15:33:49 +0200 Subject: [PATCH] Generate `id` and `for` on label and input when using rails helper --- config/application.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/application.rb b/config/application.rb index 3273f812d1..c82fc95267 100644 --- a/config/application.rb +++ b/config/application.rb @@ -231,5 +231,7 @@ module Openfoodnetwork config.generators.template_engine = :haml config.autoloader = :zeitwerk + + config.action_view.form_with_generates_ids = true end end