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

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

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