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

Unable to open serial port using Putty to bluetooth device on windows 7 64 bit -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -