Hmm, ok Thank you. I actually made it work before I read your post. Any 
way, I have a (beginner) question. I still dont understand how 
everything works. When I do "Site.all.each do..." - Im creating an 
object that holds all data from the table Sites? That object is in 
memory? What if the table is very big, wouldnt that be memory consuming? 
Or is the object actually querying the database for each iteration?

Any way. Thank you all. Now I will try to do the same with active_record 
as suggested above. :)

Br
cristian

-- 
Posted via http://www.ruby-forum.com/.