我想通過使用axlsx並保存它(Rails4.2)在後臺生成excel文件。在axlsx的GitHub頁面中,它表示As of Rails 4.1 you must use render_to_string to render a mail attachment。然而,它引發了我的錯誤NoMethodError: undefined method 'render_to_string' for #<
如果我有兩個工作表,並且正嘗試從另一個工作表中訪問值。有沒有辦法可以做到這一點的axlsx寶石? wb.add_worksheet(name: "Table A".excel_worksheet) do |sheet|
end
wb.add_worksheet(name: "Table B".excel_worksheet) do |sheet|
end
如果我的工作表的內部B,現