%= form_with(model: analytic) do |form| %>
<% if analytic.errors.any? %>
<%= pluralize(analytic.errors.count, "error") %> prohibited this analytic from being saved:
<% analytic.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.submit %>
<% end %>