From c88480be7cb4917083054c0bcc9ffa319c0de94e Mon Sep 17 00:00:00 2001 From: Tushar Pokle Date: Mon, 7 Jan 2013 23:07:32 +1100 Subject: [PATCH] Oops! Fixed the issue with the app not going to the secret page after login --- app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.rb b/app.rb index 033ccaa..3510c70 100644 --- a/app.rb +++ b/app.rb @@ -15,8 +15,8 @@ def username before '/secure/*' do if !session[:identity] then - session[:previous_url] = request['REQUEST_PATH'] - @error = 'Sorry guacamole, you need to be logged in to do that' + session[:previous_url] = request.path + @error = 'Sorry guacamole, you need to be logged in to visit ' + request.path halt erb(:login_form) end end