From 84dff2537b78d386087430d5109bcf57f32c7dac Mon Sep 17 00:00:00 2001 From: f Date: Mon, 6 Apr 2020 19:21:14 -0300 Subject: [PATCH] traer el layout del post no de los parametros --- app/views/posts/_form.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 573389fb..27d1953d 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -19,7 +19,7 @@ -# Botones de guardado = render 'posts/submit', site: site, post: post - = hidden_field_tag 'post[layout]', params[:layout] || 'post' + = hidden_field_tag 'post[layout]', post.layout.name -# Dibuja cada atributo - post.attributes.each do |attribute|