I am using the ROO gem to parse an Excel file uploaded by the user (Active Storage with AWS S3) on Heroku.
Since I am on Heroku I cannot download it on filesystem and then parse it. How can I open it from HTTP?
Model
class Report < ApplicationRecord
has_one_attached :search_report
def parsing_method(path_http)
xlsx = Roo::Spreadsheet.open(path_http)
end
In a similar application, I used this:
It should work for you.