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