%= form_for(@admin_book) do |f| %>
<% if @admin_book.errors.any? %>
<%= pluralize(@admin_book.errors.count, "error") %> prohibited this admin_book from being saved:
<% @admin_book.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% 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 %>