Sha256: d48e813322b766e290f21a11e0c589e128b50d97266cf2cff7c4ee998f2c4ad9

Contents?: true

Size: 419 Bytes

Versions: 16

Compression:

Stored size: 419 Bytes

Contents

# Customizing the CSV format

Active Admin provides CSV file downloads on the index screen for each Resource.
By default it will render a CSV file with all the content columns of your
registered model.

Customizing the CSV format is as simple as customizing the index page.

    ActiveAdmin.register Post do
      csv do
        column :title
        column("Author") { |post| post.author.full_name }
      end
    end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
activeadmin-0.4.4 docs/4-csv-format.md
activeadmin-0.4.3 docs/4-csv-format.md
activeadmin-0.4.2 docs/4-csv-format.md
activeadmin-0.4.1 docs/4-csv-format.md
activeadmin-0.4.0 docs/4-csv-format.md
andrewroth_activeadmin-0.3.4.4 docs/4-csv-format.md
andrewroth_activeadmin-0.3.4.3 docs/4-csv-format.md
andrewroth_activeadmin-0.3.4.2 docs/4-csv-format.md
andrewroth_activeadmin-0.3.4.1 docs/4-csv-format.md
andrewroth_activeadmin-0.3.4 docs/4-csv-format.md
activeadmin-0.3.4 docs/4-csv-format.md
activeadmin-0.3.3 docs/4-csv-format.md
activeadmin-0.3.2 docs/4-csv-format.md
activeadmin-0.3.1 docs/4-csv-format.md
activeadmin-0.3.0 docs/4-csv-format.md
nsm-activeadmin-0.2.2 docs/4-csv-format.md