0
我有一個的form_tag視圖,Rails3中form_tag的
<table class="center">
<%= render @products %>
</table>
<%= form_tag write_offs_path, :remote => true, :id => "add_write_off" do %>
<%= submit_tag "Write off", :id => "set_write_off" %><br/>
<%= text_area_tag 'comment', nil, :size => "100x5", :id => "write_off_comment" %>
<% end %>
在產品
patrial我
<% check_box_name = product.class.table_name + "[]" -%>
<tr>
....
<td>
<%= check_box_tag check_box_name, product.id %>
</td>
</tr>
現在,當我選擇一些複選框,然後按提交按鈕,僅僅註釋形式text_area進入params,但產品checkbox值數組沒有來,如何解決?