From baf995ab8224f911f513b6e286a5d74656d5b07f Mon Sep 17 00:00:00 2001 From: f Date: Thu, 21 Jun 2018 14:35:14 -0300 Subject: [PATCH] no perder el valor de la plantilla sino `find_template` no la encuentra --- app/views/posts/_form.haml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 22760512..6e06ca9a 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -16,6 +16,7 @@ - url = site_post_path(@site, @post, lang: @lang) - method = :patch = form_tag url, method: method, class: 'form', novalidate: true do + = hidden_field_tag 'template', params[:template] .form-group = submit_tag t('posts.save'), class: 'btn btn-success' .form-group