Hi Tim,

There is no out-of-box way to marge records in Rails framework.
However, by using ActiveRecord, you can do data operations like
comparing filed values, inserting new records, and deleting old
records.

I think you are asking very core part of your business, and I assume
no one can really answer what to do for your problem.  How do you
define "data is similar or same"?  If records matches, which record
should be left or creating new one?  Is this process happens in batch
mode or when user processed specific actions?  Thinking these
questions may help you to define "your algorithm". Once you come up
with your algorithm, you put it into your model and encapsulate the
process.

Hope this will help.

Glen

--~--~---------~--~----~------------~-------~--~----~
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