Rails 4.0.0
I am developing an app that checkes information updates automatically.
When the checking algorithms get to work, they receive an array of
contents such as
info_obtained: ['Tom', 'Steven', 'Bill', ...]
then, the app needs to check if each element of the array is already
persisted in the database.
Of course, I can loop through all elements like
Info.all.each do | i |
if i == ... then
Info.create(... => i)
end
end
But it seems inefficient.
Is there better ways or gems that do the job I am looking for?
soichi
--
Posted via
http://www.ruby-forum.com/.