<%= form_for(@author) do |f| %> <% if @author.errors.any? %>

<%= pluralize(@author.errors.count, "error") %> prohibited this author from being saved:

<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.submit %>
<% end %>