I have used gem exiftool to extract metadata on my rails project but on my browser its printing like an array. I want to print it in proper keys and values format. My code is this and its not working.
photo = Exiftool.new oldpath(myfile)
photo1=photo.to_hash
photo1.each_pair { |k, v| "#{k}:#{v}" }