%= form_for(@post) do |f| %>
<% 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 %>
<%= f.label :content %>
<%= f.text_field :content %>
<%= f.submit %>
<% end %>