This is a very common piece of code.
<% form_for :blah... do |f| %>
<%= f.error_messages %>
First name: <%= f.text_field :first_name %><br />
....
<% end %>
error_messages is a helper method, but it's hard for me to find documentation for it, why?
source
share