RailsCasts Pro episodes are now free!

Learn more or hide this

mirekvolovec's Profile

GitHub User: mirekvolovec

Comments by

Avatar

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.