From d0fc7663ceb61ed8a66cbbd3a168e09429a447a9 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 12 Mar 2013 00:04:38 -0500 Subject: [PATCH] redirect clientside --- app/views/layouts/_session_protection.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/_session_protection.html.erb b/app/views/layouts/_session_protection.html.erb index ffe33785..89988596 100644 --- a/app/views/layouts/_session_protection.html.erb +++ b/app/views/layouts/_session_protection.html.erb @@ -4,6 +4,10 @@ User.find(session[:user]) if session[:user] rescue Mongoid::Errors::DocumentNotFound session[:user] = nil - redirect_to homepage_path + %> + + <% end %> \ No newline at end of file