%= form_with(model: suggestion) do |form| %>
<% if suggestion.errors.any? %>
<%= pluralize(suggestion.errors.count, "error") %> prohibited this suggestion from being saved:
<% suggestion.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.label :subject, style: "display: block" %>
<%= form.text_field :subject %>
<%= form.label :body, style: "display: block" %>
<%= form.text_area :body %>
<%= form.label :sent, style: "display: block" %>
<%= form.check_box :sent %>
<%= form.submit %>
<% end %>