<%= form_with model: [@run, @checkpoint] do |f| %>
<%= f.label :title %> <%= f.text_field :title %>
<%= f.label :description %> <%= f.text_area :description %>
<%= f.label :save_file %> <%= f.file_field :save_file %>
<%= f.submit "Submit checkpoint", class: "btn-primary" %>
<% if @checkpoint.errors.any? %>

<%= pluralize(@checkpoint.errors.count, "error") %> prohibited this checkpoint from being saved:

<% end %> <% end %>