% attachments = Array(field.many? ? field.attachments : field.data) removable = local_assigns.fetch(:removable, false) %> <% attachments.each do |attachment| %>