Anthony M Pizzurro


250 Experience
2 Lessons Completed
0 Questions Solved


Thanks to the videos here, I've implemented file upload with Shrine in my app. They are audio files, stored on s3, and made available to the public.

I'd like to track the downloads and provide my users with some basic statistics. I don't see any out of the box solutions/gems that can get me close.

I've considred:

  • Parsing s3 bucket logs and creating a record in my app's DB
  • Setting up a url redirect, grabbing the request data, and creating a record in my app's DB

Is one of these methods better than the other? Is there a better option?


logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.