ruby on rails - Spreadsheet Gem, upload and read file -


i'm trying upload , read file using spreadsheet, absolute path, can read file, when try upload file, can't read it. can read file?

def upload   file_data = params[:uploaded_file]   #book = spreadsheet.open('/users/mymac/downloads/issues.xls')   book = spreadsheet.open(file_data)           sheet1 = book.worksheet('sheet1') # can use index or worksheet name   sheet1.each |row|     #todo          end end 

i think question should you. haven't stated gem using read spreadsheet, spreadsheet , roo should both serve purposes.

parsing xls spreadsheet in rails using roo gem


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -