On Tue, Apr 14, 2009 at 2:55 PM, steveluscher <goo...@steveluscher.com> wrote:
> 1) You are selling Orders for items of various ProductVariants, > belonging to one Product > 2) There may be an upper limit to how many Orders you can take for any > given Product > What do you think is the best way to prevent overselling in this case? > * Something I haven't considered? My wife sells jewelry and many pieces are one-of-a-kind. I have an inventory table with an entry for each piece, including location: web site, gallery, etc. If a customer puts that item in a cart, then the "location" is set to the cart id, and no one else can even see the item, much less purchase it. If the cart times out, the item is returned to inventory and becomes visible again. Maybe not directly analogous to your situation, but something to think about. :-) HTH, -- Hassan Schroeder ------------------------ hassan.schroe...@gmail.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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---