From 0b23467f3e94c3b22128031088c48998ea9969ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Fri, 18 Aug 2017 11:24:13 +0200 Subject: [PATCH] Fix partial variable name --- app/views/documents/_nested_form_fields.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/documents/_nested_form_fields.html.erb b/app/views/documents/_nested_form_fields.html.erb index c2ec64829..10a3f7d11 100644 --- a/app/views/documents/_nested_form_fields.html.erb +++ b/app/views/documents/_nested_form_fields.html.erb @@ -1,8 +1,8 @@ -<%= f.label :documents %> +<%= form.label :documents %>

Aquí puedes añadir hasta 3 doucmentos en formato PDF

<% documents.each_with_index do |document, index| %>
- <%= f.fields_for :documents, document do |document_fields| %> + <%= form.fields_for :documents, document do |document_fields| %> <%= document_fields.text_field :title %> <%= document_fields.hidden_field :cached_attachment, value: document.attachment.path %> <%= document_fields.file_field :attachment,