So you're telling me that the solution to the problem is this simple?
model_name.to_json(
:include => [
{:arbitrary_name_1 => {:assoc_1 => params} },
{:arbitrary_name_2 => {:assoc_2 => params} }
])
Ugh... why isn't that in the documentation!?
I'll have to give it a try sometime.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.