% form_for @person do |f| %> <%= f.error_messages %>
<%= f.label :firstname %> <%= f.text_field :firstname %>
<%= f.label :lastname %> <%= f.text_field :lastname %>
<%= f.submit "Submit" %>