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

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

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