I''d like to update an attribute on the parent using an association callback. For example class User < ActiveRecord::Base has_many :peeps, :after_add => :update_latest_peep protected def update_latest_peep(peep) self.latest_peed_id= peep.id end end If I debug and step through the code, I see that @owner (which is the user in question) actually does have that attribute set however when the code exists, it doesn''t seem to save. 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 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 -~----------~----~----~----~------~----~------~--~---