Spreadsheet.client_encoding = 'UTF-8'
book = Spreadsheet.open(“file_path”)
sheet = book.worksheet(0)
row1 = sheet.row(0)
head_column = {}
row1.each_with_index do |k,v|
head_column[k] = v
end
sheet.each 1 do |row|
first_name = row[0]
#OR
first_name = row[head_column["First Name"]] #First Name in excel header
Contact.create(first_name: first_name)
end