Jerome Doyle

Joined

20 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in File Uploads with Refile Discussion

Thanks for the reply. I've opened an issue on the repo. Direct link https://github.com/refile/r...

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.

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

© 2021 GoRails, LLC. All rights reserved.