From: Kevin Brown Date: 2008-07-15T05:14:36+09:00 Subject: Re: how to loop through two arrays in parallel ------_=_NextPart_001_01C8E5EE.B212C9FF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'll start for i in (0..products.size-1) p products[i]=20 p quantity[i] end -----Original Message----- From: Mitchell Gould [mailto:go_mitchell@yahoo.ca] Sent: Mon 7/14/2008 4:03 PM To: ruby-talk ML Subject: how to loop through two arrays in parallel =20 I have two arrays from a form. params[:products] and params[:quantity] which are products[] and quantity[] I would like to extract the data from each item to get their name and quantity. Is there a way in Ruby to do this? for product in products[] and quantity in quantity[]? --=20 Posted via http://www.ruby-forum.com/. ------_=_NextPart_001_01C8E5EE.B212C9FF--