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

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

<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :desc %>
<%= f.text_area :desc %>
<%= f.label :publish_at %>
<%= f.date_select :publish_at %>
<%= f.submit %>
<% end %>