I have a list of items in my shopping page, and each time an "add to cart" button is clicked, an AJAX request is fired off with only a product_id.
"Add this item to the cart" so to speak.
What does my Action have to look like in Rails for this scenario?
I'm specifically asking about the controller side, and what the action would look like. Just assume it receives a numerical ID.