Ruby on Rails
Friday, March 30, 2012
hi,
i have a model like this capturing integer values.
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment