On Fri, Jan 16, 2009 at 2:43 PM, Tim Dunn
<[email protected]> wrote:
>
> Hi I am Tim Dunn and am working on a web app to help people research
> their family history. I am wondering how to merge records from the same
> table into one record based on if they are exact or partial matches in
> any given set of fields.

You might want to check out this plugin: http://github.com/collectiveidea/merger

Right now it doesn't have any of the logic for picking which which
fields to keep, but it will merge all the associations to the oldest
model and delete the newer ones.

    @person1.merge(@person2, @person3)


-- Brandon
--------------------------------------------------------------------------------
Training by Collective Idea: Refer a friend and get $100
http://training.collectiveidea.com – San Antonio, TX – Jan 20-23

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to