Generating search conditions?

hi, i think "Chronic" is the library you're looking for. check it at :
http://chronic.rubyforge.org/