- attachments.each do |attachment| .attachment= attachment.name