5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-04 15:45:46 +00:00

traer el layout del post no de los parametros

This commit is contained in:
f 2020-04-06 19:21:14 -03:00
parent fd4d302e3b
commit 84dff2537b
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -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|