M
Mitchell Gould
I have two arrays from a form.
params[roducts] 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[]?
params[roducts] 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[]?