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