<%= form_for [:my, @order], :url => date_my_order_path(@order), :html => { :class => 'form-horizontal' } do |f| %> <%= render 'error_messages', target: @order %>
<%= f.label :order_on, '预约日期:', :class => 'col-sm-2 control-label' %>
<%= f.text_field :order_on, :class => 'form-control' %>
<%= f.label :order_at, '预约时间:', :class => 'col-md-2 control-label' %>
<%= f.time_field :order_at, :class => 'form-control' %>
<%= f.submit :class => "btn btn-primary" %>
<% end %>