<%= form_with(model: analytic) do |form| %> <% if analytic.errors.any? %>

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

<% end %>
<%= form.submit %>
<% end %>