%= form_for(@customer) do |f| %>
<% if @customer.errors.any? %>
<%= pluralize(@customer.errors.count, "error") %> prohibited this customer from being saved:
<% @customer.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.fields_for :others, @other do |other| %>
<% if @uploaded_file %>
<% @uploaded_file.each do |files| %>
<%= link_to files.upload_file_name, {action: 'download', 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| %>
<%= other.fields_for :contents, content do |c| %>
<%= c.file_field :upload_file, class: "file" %>
<% end %>
<% end %>
<% end %>
<% end %>
<%= f.submit "更新", :name => "other_update", class: "w8-button l-blue normal"%>
<% end %>