这是我的表格
<table>
<%= form_for Slot.new, :url => slots_path(@current_webclass), :validate => true, remote: true, :html => {:class => 'form-horizontal', id: 'slot-form', data: {type: "script", method: :post}} do |f| %>
<tr>
<td>
<%= f.text_field :title %>
</td>
<td>
<%= f.text_field :start_at, class: 'timepicker' %>
</td>
<td>
<%= f.text_field :start_at, class: 'timepicker' %>
</td>
<td>
<%= f.submit 'add', class: 'btn btn-success', disable_with: "process..." %>
</td>
</tr>
<% end %>
</table>