Skip to content

Using partials corrupts the xlsx file. #186

@henrikbjorn

Description

@henrikbjorn

Having a controller template doing

render 'statistics/shared/workbook`

and the _workbook partial being something like:

book = xlsx_package.add_worksheet
sheet = book.add_worksheet(name: "something")

sheet.add_row ['row', 'boat', 'show']

Makes the generated xlsx file corrupt. Moving the partial contents to the template directly and the file is not corrupt and work as it should.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions