From: Brian Candler Date: 2011-09-05T14:16:18+09:00 Subject: Re: help on find over find Josh Cheek wrote in post #1019938: > There should be a way to return a lazy > finder object that you can then add further queries to, but I don't > really > feel like loading Rails up to figure it out In Rails 3 you active Active Relation, where the new query methods return lazy "relations" which can be chained. http://m.onkey.org/active-record-query-interface That is, instead of Klass.find(:all, :conditions=>...) use Klass.where(:conditions=>) Also look at named scopes and with_scope: http://api.rubyonrails.org/classes/ActiveRecord/NamedScope/ClassMethods.html http://ar.rubyonrails.org/classes/ActiveRecord/Base.html#M000378 Regards, Brian. -- Posted via http://www.ruby-forum.com/.