Currently I am working on (surprise, surprise) a webshop with a
shopping cart. Now I really like the whole REST thing but I constantly
run into the same problem.
As a user I am browsing the site and add products to the cart. This
results in an UPDATE of the cart object and a redirect_to :back.
However, when I am finalizing an order I tack on some additional info
on the cart object. In this case I want to redirect to the next step
in the ordering process.
But this is just an example, it happens that the update of a resourse
happens in a certain context. The context determines the finalizing
step in the update method(or what ever method). This violates the
stateless principe but I see no way around it. How do you guys handle
With kind regards,