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

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

<% end %>
<%= form.label :text, style: "display: block" %> <%= form.text_field :text %>
<%= form.label :body, style: "display: block" %> <%= form.text_area :body %>
<%= form.submit %>
<% end %>