How can i display the correct index value on groups on array?
I have the following table called products:
Add form submission to page
I’m new to rails. I need help. I’ve created a form that allows the user to customize an item and click a “submit” button. The “submit” button should redirect user to cart page and add the customized item to cart. However, when the “submit” button is clicked, it directs the user to cart page but does not add the item to cart. I’m stuck and am in need of some assistance.
Add to cart button isn’t functioning
For my project, I need to create an ‘add to cart’ button that adds the item to cart and directs the user to the cart page (localhost:3030/cart). I have a button created but it is not functioning. I need help. I’m very new to rails so I don’t know much of how to navtigate through it all. I only know the little that I was taught in a couple months in a semester.