Chris Boyce
2006-Apr-26 22:15 UTC
[Rails] Returning multiple models or models with child rows in AWS
I searched the archives, and couldn''t seem to find a clear example of what I was trying to do. I''d like to return a model with all its child rows, but using Foo.find(:all, :include => [:child1,:child2]) doesn''t return the child rows when using AWS (though it does when using the console). From what I''ve read, it looks like I need to do something with a struct, but I can''t seem to find an example. Any ideas? -- Posted with http://DevLists.com. Sign up and save your mailbox.