%= form_for(@event_export_file) do |f| %> <%= f.error_messages %> <%= f.hidden_field :mode, value: 'export' if @event_export_file.new_record? %>