caxlsx / caxlsx_rails

A Rails plugin to provide templates for the axlsx gem
MIT License
744 stars 84 forks source link

Turbolinks can mess things up #72

Closed JohnSmall closed 7 years ago

JohnSmall commented 7 years ago

The latest version of Turbolinks will display the generated Excel file in the of the

Which is obviously not what's required. It took me hours to work it out but the link to your action to generate and download the Excel file needs to be

link_to 'download Excel',my_excel_path,data:{turbolinks: false} So the documentation needs to be updated to reflect the new Turbolinks behaviour.

straydogstudio commented 7 years ago

Thanks for sharing this. I'll add a section on Turbolinks to the README.

Did it change with a newer version of Turbolinks, or did it work in the past?

straydogstudio commented 7 years ago

Turbolinks section added to troubleshooting in the Readme.