%= form_for [:my, @order], :url => date_my_order_path(@order), :html => { :class => 'form-horizontal' } do |f| %> <%= render 'error_messages', target: @order %>