From 865cc8fc18fd2e90e8e8190a83bfe2ccf632086c Mon Sep 17 00:00:00 2001 From: f Date: Mon, 27 May 2024 15:28:17 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20enviar=20los=20atributos=20ignorados=20c?= =?UTF-8?q?omo=20valores=20vac=C3=ADos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/posts/_htmx_form.haml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/posts/_htmx_form.haml b/app/views/posts/_htmx_form.haml index 03e82e32..8cc8c938 100644 --- a/app/views/posts/_htmx_form.haml +++ b/app/views/posts/_htmx_form.haml @@ -69,4 +69,8 @@ -# Dibuja cada atributo = render 'posts/attributes', site: site, post: post, dir: dir, base: base, locale: locale, except: except + -# Enviamos valores vacĂ­os para los atributos ocultos + - except.each do |attr| + %input{ type: 'hidden', name: "#{base}[#{attr}]", value: "" } + = yield(:post_form)