Displaying 1 result from an estimated 1 matches for "get_phones".
2005 Dec 16
3
Using :include "recursively" (including the children of the child)?
Hi,
Let''s say I have the following hierarchy of tables:
Group <- parent
Location <- child of Group
School <- child of Location
Phone <- child of School
Then, if I want to do this:
Location.find(...someparms..., :include => [:schools, :group, :phones])
I get an association error (Association was not found). I guess it
happens because AR is looking in the Location model