Dear list, At the moment I am working on an app which has a good few models and associations. In short: A :has_many B B :belongs_to A Now I want to update A when I have saved B, so I wrote a after_save filter. However the update of A entails looking at all associated B''s so I wrote something like: self.Bs.each do |b| #do something end This did not work. It iterated alright but almost all attributes in B were empty. Writing: self.Bs.find(:all).each do |b| #do something end This did work! Why? With kind regards, Harm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---