I have a special url which I would want only few people to have access to. I have a list of super users stored as an array in the app.yml. How can I use this array in :requirements section of a specific route in the routes.rb file to allow only those super users access to this route? Thanks a lot.
Share
No, you can’t.
:requirementsare related to route parameters only.Which is, in my opinion, a good thing. It’s a well known convention to have authentication logic in controllers.