Add an unless empty?
condition before fields_for
. @object will be the object for which you created the form
<%= f.label :attachment_uploader, 'Current Attachments:' %>
<% unless @object.data_files.empty? %>
<%= f.fields_for :data_files do |attachment| %>
<% if !attachment.object.new_record? %>
<%= attachment.label :attachment_uploader, 'Delete: ' + attachment.object.attachment_uploader_url.split("/").last %>
<%= attachment.check_box :_destroy %>
<% end %>
<% end %>
<% end %>