Skip to content

index_without_xlsx(options) fails with wrong number of arguments (1 for 0) #47

@jasper502

Description

@jasper502

lib/active_admin/axlsx/resource_controller_extension.rb

index_without_xlsx(options) fails with:

wrong number of arguments (1 for 0)

      def index_with_xlsx(options={}, &block)
        index_without_xlsx(options) do |format|
           format.xlsx do
            xlsx = active_admin_config.xlsx_builder.serialize(collection)
            send_data xlsx.to_stream.read, :filename => "#{xlsx_filename}", :type => Mime::Type.lookup_by_extension(:xlsx)
          end
        end

All my active admin index pages fail with the same error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions