Fix partial variable name

This commit is contained in:
Senén Rodero Rodríguez
2017-08-18 11:24:13 +02:00
parent 4cfe841af9
commit 0b23467f3e

View File

@@ -1,8 +1,8 @@
<%= f.label :documents %>
<%= form.label :documents %>
<p class="help-text">Aquí puedes añadir hasta 3 doucmentos en formato PDF </p>
<% documents.each_with_index do |document, index| %>
<div>
<%= 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,