diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index a9819a1b..af2bcb83 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -29,7 +29,6 @@ end - dir = t("locales.#{@locale}.dir") - -# Comienza el formulario = form_tag url, method: method, class: 'form post ' + extra_class, multipart: true do @@ -41,10 +40,9 @@ -# Dibuja cada atributo - post.attributes.each do |attribute| - metadata = post[attribute] - - type = metadata.type - cache metadata do - = render("posts/attributes/#{type}", + = render("posts/attributes/#{metadata.type}", base: 'post', post: post, attribute: attribute, metadata: metadata, site: site, dir: dir, locale: @locale,