Rails 3.0 deprecated f.error_messages and now requires a plugin to work correctly - I however want to learn how to display error messages the (new) native way.
I'm pretty sure all you'd need to do is reference @post.comments
So you could do something like:
<% @post.comments.each do |comment| %>
<% if comment.errors.any? %>
<% comment.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<% end %>
Or just pull all the errors out out:
comment_errors = @post.comments.map(&:errors)
and then loop through them in your display logic to output each of the comment errors.