Forum: Ruby on Rails Sub-selects with Find

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5201e306c37562746a8cdeebe24bef32?d=identicon&s=25 Jose Hales-Garcia (Guest)
on 2006-04-15 07:24
Is it possible to do sub-select queries with Find?
0091f92762685860109bbcb02edfdf27?d=identicon&s=25 Alain Ravet (Guest)
on 2006-04-15 11:29
(Received via mailing list)
Jose
    > Is it possible to do sub-select queries with Find?

Try 'with_scope' :
    http://api.rubyonrails.com/classes/ActiveRecord/Ba...

Alain
0091f92762685860109bbcb02edfdf27?d=identicon&s=25 Alain Ravet (Guest)
on 2006-04-15 14:15
(Received via mailing list)
> Try 'with_scope' :
    >
http://api.rubyonrails.com/classes/ActiveRecord/Ba...

More and better examples of with_scope usage:

http://blog.teksol.info/articles/2006/04/14/using-...

Alain
This topic is locked and can not be replied to.