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