I am working with a table in my database where I am looking through every record to see if it matches with every other record in that same table to see if its a soundex match or not I want to define a method where I can call it as a true or false statement like: onerecord.soundex(otherrecord) = true or false and be able to run the code below based on if its true or false -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
http://snippets.dzone.com/posts/show/4530 ----- Ryan Bigg Freelancer http://frozenplague.net On 22/01/2009, at 2:46 PM, Tim Dunn wrote:> > I am working with a table in my database where I am looking through > every record to see if it matches with every other record in that same > table to see if its a soundex match or not > > I want to define a method where I can call it as a true or false > statement like: > > onerecord.soundex(otherrecord) = true or false and be able to run the > code below based on if its true or false > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Also... http://en.wikipedia.org/wiki/Soundex is helpful. ----- Ryan Bigg Freelancer http://frozenplague.net On 22/01/2009, at 2:46 PM, Tim Dunn wrote:> > I am working with a table in my database where I am looking through > every record to see if it matches with every other record in that same > table to see if its a soundex match or not > > I want to define a method where I can call it as a true or false > statement like: > > onerecord.soundex(otherrecord) = true or false and be able to run the > code below based on if its true or false > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---