<%= form_with(model: post, local: true) do |form| %> <% if post.errors.any? %>

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

<% end %>
<%= form.label :title %> <%= form.text_field :title %>
<%= form.label :content %> <%= form.text_area :content %>
<%= form.submit %>
<% end %>