search for: name_contains

Displaying 1 result from an estimated 1 matches for "name_contains".

2006 Apr 22
4
Slice and dice plugin
...ss than and contains can also be specified: Animals.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 => ''Tig...