%= form_for [post, comment] do |f| %>
<% if comment.errors.any? %>
<%= pluralize(comment.errors.count, "error") %> prohibited this post from being saved:
<% comment.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :author %>
<%= f.text_field :author %>
<%= f.label :email %>
<%= f.text_field :email %>
<%= f.label :url %>
<%= f.text_field :url %>
<%= f.label :body %>
<%= f.text_area :body, :rows => 10, :cols => 90 %>
<%= f.submit %>
<% end %>