1 <%= form_for(@role) do |f| %>
2 <% if @role.errors.any? %>
3 <div id="error_explanation">
4 <h2><%= pluralize(@role.errors.count, "error") %> prohibited this role from being saved:</h2>
7 <% @role.errors.full_messages.each do |msg| %>
15 <%= f.label :name %><br />
16 <%= f.text_field :name %>