_form.html.erb 293 B

123456
  1. <%= bootstrap_form_for(DataFile.new) do |f| %>
  2. <%= f.file_field :data, hide_label: true %>
  3. <%= f.hidden_field :repository_id, value: repository.id %>
  4. <%= f.hidden_field :repository_type, value: repository.class.name %>
  5. <%= f.submit 'Upload file', class: 'btn btn-primary' %>
  6. <% end %>