Here is the ActiveAdmin documentation for customizing the CSV format I am using ActiveAdmin with my rails app and I would like to be able to download a CSV file that has data in multiple tabs. How can I do this?
Here is the ActiveAdmin documentation for customizing the CSV format I am using ActiveAdmin
Share
You might look at the spreadsheet gem (or here for code) then. CSV by itself does not support multiple tabs that I know of. Instead you would want to generate the data as you would for the CSVs and then do a new sheet per CSV:
This is just to give you an idea… you would want to dig into the spreadsheet documentation, wiki and examples on the web to see what works best. There is also harvesthq’s simple_xlsx_writer but I have never used it and it seems much less used than spreadsheet.