Sure. You can run the Caxlsx code directly in the controller, or in a model, or in some other location. Then take the final object and render it to a string and return it in the controller. Something like this in the end:
p = Axlsx::Package.new
//do stuff here to create your workbook
send_data p.to_stream.string, filename: "file_name.xlsx", type: Mime::XLSX, disposition: 'attachment'
You can also join the Slack channel for caxlsx and ask questions there. See the Readme for Caxlsx.
Sure. You can run the Caxlsx code directly in the controller, or in a model, or in some other location. Then take the final object and render it to a string and return it in the controller. Something like this in the end:
You can also join the Slack channel for caxlsx and ask questions there. See the Readme for Caxlsx.