Frederick Cheung wrote: > Your would just retrieve the cart object and destroy it. > > Fred
Ya, that's what. As the details inserted into that "carts" table aren't necessarily the ones the customer would have done and its needed just till the time of session, I have made "carts" table thinking it will just hold the temporary values and whenever customer hits "Emtpy cart" button, I wanted all the details related with that session deleted from this "carts" table as well. And after finalising the details and the payment is done then only the details from here be stored in corresponding tables permanently. If my logic is right can you please suggest me any better.. thanks.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

