traer el layout del post no de los parametros
This commit is contained in:
parent
fd4d302e3b
commit
84dff2537b
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
-# Botones de guardado
|
-# Botones de guardado
|
||||||
= render 'posts/submit', site: site, post: post
|
= 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
|
-# Dibuja cada atributo
|
||||||
- post.attributes.each do |attribute|
|
- post.attributes.each do |attribute|
|
||||||
|
|
Loading…
Reference in a new issue