这段代码:
= form_fo:store_products do | f |
= f.check_Box:track_inventory
= form_fo:store_products do | f |
= f.check_Box:track_inventory
创建这个HTML:
<input name="product_group[products_attributes][0][store_products_attributes}[1342647745501][track_inventory]" type="hidden" value="0"> <input id="product_group_products_attributes_0_store_products_attributes_1342647745501_track_inventory" name="product_group[products_attributes][0][store_products_attributes][1342647745501][track_inventory]" type="checkBox" value="1">
第一个隐藏元素的原因是什么?