hi, i have a model like this capturing integer values. testrun_id valve_a valve_b valve_c valve_....n what i would like to know is how to write an ar-query to find similar records across all valve-values. similar to levenshtein distance, but for integers. i could imagine also grouping some valves-values into a total and compare the totals, but not sure. any ideas? thx -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.