Sub-selects with Find

Is it possible to do sub-select queries with Find?

Jose
> Is it possible to do sub-select queries with Find?

Try ‘with_scope’ :
http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000892

Alain

Try ‘with_scope’ :

http://api.rubyonrails.com/classes/ActiveRecord/Base.html#M000892

More and better examples of with_scope usage:

http://blog.teksol.info/articles/2006/04/14/using-nested-scopes-to-not-repeat-yourself

Alain

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs