I have this code
#check if haus table is not blank
if !haus.blank?
temp = Dir.mkdir("C:/thistemporary/")
puts "tempfolder is created"
haus.each do |file|
dataname = file.name
datavalue = file.data
end
end
I need to iterate through the haus table, that has “data column” (longblob) and “name column”(varchar), save each data with its name and value related inside the temp folder. How can I do this?
Thank you for any suggestion
1 Answer