on my page a user can select multiple items. I use a checkbox and iterate over all the items of a user. Now I want to show the user the total price of all the items he selected on that page. So to say the total price of the shopping cart.
How can I access the ids of my items on the same page that the user clicks on them? I know that in the controller I can access them by
Item.find(params[:items])
Thanks a lot in advance :)
Aucun commentaire:
Enregistrer un commentaire