> Sharagoz wrote:
> I don't think that is necessary. It should be possible to get the data
> in a single sql query.
> @cs = C.all(:joins => {:b => :as}, :conditions => {'as.id = 1'})
>
That 's what I was looking for,
I was wrong because I began research from the wrong side (A instead of
C)
Thank you very much,
Alessandro DS
--
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.