Search code examples
excelruby-on-rails-5delayed-jobactioncable

Download Exported excel file in the background with Action Cable


I need a way where I can send a request to server and get immediate response but I need to create long excel file in background when the background job is finished the created file should be downloaded automatically. I have follow this but here the file is being generated at client side I want to create the file on server side and can send via action cable the rest of things are same.


Solution

  • I solved this by sending a new request after creating file to download where I send file in response and after that I remove file from system