I want to use warden in my Sinatra app, but I am lost in one particular thing. How can I call specific route on Sinatra in failure_app lambda? I mean something like SessionsController.action(:new) but with Sinatra app. I know that I can use something like
ruby
[302, {'Location' => '/session/new'}, []]
but this solution don't send env variable, so env['warden'].message can't work.
I want to use warden in my Sinatra app, but I am lost in one particular thing. How can I call specific route on Sinatra in failure_app lambda? I mean something like SessionsController.action(:new) but with Sinatra app. I know that I can use something like
but this solution don't send env variable, so env['warden'].message can't work.