<%= form_for(@estimate) do |estimate| %>
<% if @uploaded_file %>
<% @uploaded_file.each do |files| %>
<%= link_to files.upload_file_name,
{action: 'download', controller: 'customers', id: files.id}, target: "_blank" %>
<%= link_to '削除', files, method: :delete, data:{confirm: '本当ã«å‰Šé™¤ã—ã¾ã™ã‹?'}, class: "w8-button l-blue small"%>
<% end %>
<% end %>
<% if @uploading_file %>
<% @uploading_file.each do |content| %>
<%= estimate.fields_for :contents, content do |c| %>
<%= c.file_field :upload_file, class: "file" %>
<% end %>
<% end %>
<% end %>
<%= estimate.submit "æ›´æ–°", :name => "estimate_update", :customer_id => @customer.id, class: "w8-button l-blue normal" %>
<% end %>