Jerome Doyle


20 Experience
0 Lessons Completed
0 Questions Solved


Posted in File Uploads with Refile Discussion

Thanks for the reply. I've opened an issue on the repo. Direct link

Posted in File Uploads with Refile Discussion

How would you do authorization on uploaded files with Pundit? I have uploaded files which should be restricted to the user that uploaded them, but anyone with the url that attachment_url generates can access the file. Since Refile uses the sinatra app, there's no controller for me to call Pundit's authorize method in.

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.