¡@

Home 

2014/10/16 ¤W¤È 12:06:40

jquery Programming Glossary: qty_shipped

Rails 3.2 has_many through form submission

http://stackoverflow.com/questions/11199572/rails-3-2-has-many-through-form-submission

table t.integer shipment_id t.integer product_id t.integer qty_shipped This is the Problem Child This partial is looped through a few.. product.product_name text_field_tag product_shipments qty_shipped This is where the issue lies end end ul div This is the relevant.. the form is submitted product_ids 1 3 product_shipments qty_shipped 32 23 This is sql that is sent to the database INSERT INTO `product_shipments`..

Rails 3.2 has_many through form submission

http://stackoverflow.com/questions/11199572/rails-3-2-has-many-through-form-submission

belongs_to shipment belongs_to product ProductShipments table t.integer shipment_id t.integer product_id t.integer qty_shipped This is the Problem Child This partial is looped through a few times displaying all the products from a certain vendor... product.id do hidden_field_tag shipment product_ids product.id product.product_name text_field_tag product_shipments qty_shipped This is where the issue lies end end ul div This is the relevant POST data when the form is submitted product_ids 1 3 product_shipments.. issue lies end end ul div This is the relevant POST data when the form is submitted product_ids 1 3 product_shipments qty_shipped 32 23 This is sql that is sent to the database INSERT INTO `product_shipments` `product_id` `qty_shipped` `shipment_id`..