= f.fields_for :attachments do |att| = att.label :file - if att.object.new? = att.file_field :file - else = att.object.file_name