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

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

<% end %>
<%= f.label :date %> <%= f.datetime_select :date %>
<%= f.submit %>
<% end %>