From 14c85160024164d49c11b037fa20534a88e5d8f6 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Thu, 17 Aug 2006 02:06:07 +0000 Subject: [PATCH] In a session-expired scenario that results from a call to tickler/check_tickler, Tracks will redirect to tickler/check_tickler after the user re-authenticates. That action only has an rjs view, so the result was a blank page. In that situation check_tickler will now trigger a redirect to the Tracks home page. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@312 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/controllers/deferred_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tracks/app/controllers/deferred_controller.rb b/tracks/app/controllers/deferred_controller.rb index 25360a56..ef72c7e7 100644 --- a/tracks/app/controllers/deferred_controller.rb +++ b/tracks/app/controllers/deferred_controller.rb @@ -112,6 +112,10 @@ class DeferredController < ApplicationController t.show_from = nil t.save_with_validation(false) end + respond_to do |wants| + wants.html { redirect_to :controller => 'todo', :action => 'index' } + wants.js + end end protected