diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 573389f..27d1953 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|