Status:
- I have a simple new Ruby On Rails App
- I need to import some data from MS Excel in .xlsx format
- I programmed an uploading to ActiveRecord as attachment via an attribute called 'excel'
- I found a
gem
calledRoo
which should do the opening of the attachment - ...via:
Roo::Excelx.open()
command - Then executes the accessing part of the file
Issue:
Roo::Excel.open()
doesnt work for:
Roo::Excel.open(excel)
Roo::Excel.open(excel.attachment)
What is the correct command to execute to open the ActiveRecord::Attachment
?
how about do this?