2009/5/12 Anthony Ward <rails-mailing-l...@andreas-s.net> > > Hi thank you > > so if I use the include > how do i just retrieve the name then
Do you mean you want a query finding the child, including the mother.namebut not the other mother fields? I do not know whether you can do that. I think the overhead of fetching all columns is going to be rather small. Colin > > > example this is using the "magic way" > > @children do |child| > > ... print child.mother.name > > end > > > > -- > 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---