%= form_with(model: reminder, local: true) do |form| %>
<% if reminder.errors.any? %>
<%= pluralize(reminder.errors.count, "error") %> prohibited this reminder from being saved:
<% reminder.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= form.label :title %>
<%= form.text_field :title %>
<%= form.label :body %>
<%= form.text_area :body %>
<%= form.label :date %>
<%= form.datetime_select :date %>
<%= form.submit %>
<% end %>