[Rails] Re: Accessing eagerly loaded children

2008-09-09 Thread Michael Lavrisha
Frederick Cheung wrote: > Yes! @parent.children.to_a.find #<= this is Enumerable's find > > fred Sweet, that worked wonderfully! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[Rails] Re: Accessing eagerly loaded children

2008-09-09 Thread Frederick Cheung
On 9 Sep 2008, at 18:19, Michael Lavrisha wrote: > > Hello! > > In my controller, I have a model that preloads (or eager loads?) its > respective child members. > > class Parent < ApplicationController > > def show > @parent = Parent.find(:all, :include => :children) > end > end > > In my view