Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7598493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:25:14+00:00 2026-05-30T22:25:14+00:00

Here is the ActiveAdmin documentation for customizing the CSV format I am using ActiveAdmin

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:25:15+00:00Added an answer on May 30, 2026 at 10:25 pm

    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:

    @data_array_normally_for_csvs = #an array of the data hashes you might use for the csvs
    book = Spreadsheet::Workbook.new
    
    @data_array_normally_for_csvs.each do |data|
         sheet = book.create_worksheet
         sheet.name = "whatever"
         data.each do |k,v|
              sheet1.row(n) =  v #where n is the count for the hash and v is the array of values
         end
    end
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ActiveAdmin with Rails 3.1. The only images (that I'm aware of) that
Here's a coding problem for those that like this kind of thing. Let's see
Here is the scenario: I'm writing an app that will watch for any changes
I just implemented the ActiveAdmin gem with my Rails 3.1 app, and it caused
I'm trying to add activeadmin to my rails 3.0.3 app. I'm following the instructions
I'm using ActiveAdmin (0.4.0) with Rails (3.1.1). I can't find a nice way/hack to
I'm using active admin in my rails 3.0.9 app with the default setup.i.e I
Here is a app contorller directory from Rails project doing a self study for
Here's a basic regex technique that I've never managed to remember. Let's say I'm
Here is the issue I am having: I have a large query that needs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.