Select_Description_Products_Orders_1>3

On Thu, Sep 18, 2008 at 12:05 PM, Danimal <[EMAIL PROTECTED]>wrote:

>
> Hello all!
>
> I have a conundrum that I'm _sure_ someone else has already thought of
> and solved. How does one best handle the scenario of association
> object changes and data integrity?
>
> For example, if I have a standard ecommerce site that sells Products
> and people can have Orders and an Order has_many Products... then,
> what happens if Product #3 is part of Order #2 but at some point, the
> shop owner goes in and edits Product #3 to change it's description...
> or it's price... or marks it as "no longer for sale"? Now, Order #2 is
> referencing Product #3 via the association but the data in Product #3
> is no longer the right data for the Order?
>
> I can imagine a number of ways to handle this, but none of them seem
> ideal. I'm curious what people do in this type of (very?) common
> scenario.
>
> Thanks!
>
> -Danimal
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to