Plugins - Slice and Dice
Add to favoritesAllows construction of where clauses using a hash passed in as the :conditions option.
Example:
User.find :first, :conditions => {:name => 'Tom Ward'}
Task.find :all, :conditions => {:priority_more_than => 50}

Another improvement may be add a BETWEEN condition, i use (when :between then ["BETWEEN ? AND ?", argument.first, argument.last]) where argumemt is a range like 0..1000
very nice. what's still missing in my opinion is an "in" check (when :in then ["in (?)", argument]) works nicely - that way i got a searchform with generated checkboxes to work (using <%= checkboxtag("model[field_id_in][]", a.id, false, {:alt => a.name}) %>, of course). Plus, I'm missing type checks to avoid errors that happen when - for example - comparing strings with integer fields .. or should that rather be done before doing the find?