Ruby On Rails and more...
Monday, 2 November 2015
How do I pass a hash with hidden_field or hidden_field_tag:
<%= text_field 'item_quantity', item.id, :value => item.quantity %>
then parameters:
"item_quantity"=>{"56372b6ce5d9832c6f000002"=>"1", "5637442ae5d9832c6f00002b"=>"5"}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment