Displaying 1 result from an estimated 1 matches for "last_name_starts_with".
2005 Dec 19
2
Advanced search/filter use cases
...or example, imagine you could do something like:
@bobs = Person.search(:min_birth_date => ''2002-05-01'',
:max_birth_date => ''2003-05-01'',
:first_name_like => ''obert'',
:last_name_starts_with => ''Mac'',
:gender => ''Male'')
and have it recognize the "min_", "max_" and "_like" modifiers and
automatically build a query with the appropriate conditions and
condition variables.
Ideally, this search...