我有一张 orders 表,有一个全选功能,我全选或者自由选择后,再对此订单进行操作该怎么写呢?
页面
<td><%= check_box_tag "check_box","check" %></td>
<td><%= order.order_num %></td>
<td class="dropdown">
<%=link_to "#",:class=>"dropdown-toggle",:data=>{:toggle=>"dropdown"} do%>
订单操作 <b class="caret"></b>
<ul class="dropdown-menu">
<li>
<%=link_to "支付", payment_admin_order_path(order.id)%>
</li>
<li><%=link_to "发货", deliver_good_admin_order_path(order.id)%></li>
<li><%=link_to "完成", order_state_admin_order_path(order.id)%></li>
<li>
<%=link_to "取消", to_void_admin_order_path(order.id)%>
</li>
</ul>
<% end %>
</td>