%= form_for(@author) do |f| %>
<% if @author.errors.any? %>
<%= pluralize(@author.errors.count, "error") %> prohibited this author from being saved:
<% @author.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.submit %>
<% end %>