Topic: Restful Cart
I'm making a little demo app to help me understand REST with "Has many through" a bit better.
I have Products and Carts connected through line_items.
Now the way I understand it, if I want to add a Product to a Cart, I would invoke the create method in the Line_item controller. Is this correct?
Do I just add a link to the create method for Line_item and pass in the id of the Product as a param? If so does anyone know the syntax for doing this?
Last edited by learc83 (2007-05-23 13:17:58)