Displaying 1 result from an estimated 1 matches for "population_less_than".
Did you mean:
t&population_less_than
2006 Apr 22
4
Slice and dice plugin
...mals.find :first, :conditions => {:name_starts_with => ''Tig''}
Animals.find :all, :conditions => {:population_more_than => 1_000_000}
Conditions can be combined:
endangered_tigers = Animals.find :all, :conditions => {:name_contains
=> ''Tiger'', :population_less_than => 10_000}
These conditions can also be used in calculations and scoped queries:
Animals.count :conditions => {:population_more_than => 1_000_000}
Animals.with_scope :find => {:conditions => {:name_contains => ''Tiger''}} do
Animals.find :all
end
Finally, her...