Below is the code I\'m using to parse the CSV from within the app, but I want to parse a file located in a Amazon S3 bucket. It needs to work when pushed to Heroku as well.
You can get the csv file from S3 like this:
require 'csv' require 'net/http' CSV.parse(Net::HTTP.get(s3_file_url), headers: true).each do |row| # code for processing row here end