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 do it like this
CSV.new(open(path_to_s3)).each do |row| ... end