I have two tables, orders and products. Orders has_many products, and products belongs_to orders. Orders and Products both have a status field. I''d like the order status field to be auto-updated once all of its products have reached a certain status. I''ve got an after_save callback for products, but I''m not sure how to get the orders to check what its product statuses are. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---