search for: name_starts_with

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

2006 Apr 22
4
Slice and dice plugin
...any SQL at all, using a hash instead of an array or string: Animals.find :first, :conditions => {:name => ''Tiger''} As well as simple equality conditions, other tests such as more than, less 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 c...