Hi There, I''ve got an Opportunity model that includes an order_value attribute. I''d like any changes to an opportunity''s order_value to be be reflected as a new timestamped record in an order_value_entries table that references opportunity_id. I thought an Observer might be the right approach, but I''m not having luck with the sytax. Did I mention I''m just getting started in Rails? Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
> I''ve got an Opportunity model that includes an order_value attribute. > I''d like any changes to an opportunity''s order_value to be be reflected > as a new timestamped record in an order_value_entries table that > references opportunity_id.Never used it, but sounds like the acts_as_versioned pluging might be what you''re looking for... http://www.agilewebdevelopment.com/plugins/acts_as_versioned --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom wrote:> > I''ve got an Opportunity model that includes an order_value attribute. > > I''d like any changes to an opportunity''s order_value to be be reflected > > as a new timestamped record in an order_value_entries table that > > references opportunity_id. > > Never used it, but sounds like the acts_as_versioned pluging might be what > you''re looking for... > > http://www.agilewebdevelopment.com/plugins/acts_as_versionedThanks Philip - I''ll take a look and let you know how it works. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---