From d8d6ef8a3d3bbb86d0581329bfd0c026312e8847 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 18 May 2007 01:21:48 +0000 Subject: Oops. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6758 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/base.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index a10ac44939..4aa7c05f98 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -1032,6 +1032,10 @@ module ActionController #:nodoc: when :back request.env["HTTP_REFERER"] ? redirect_to(request.env["HTTP_REFERER"]) : raise(RedirectBackError) + when Hash + redirect_to(url_for(options)) + response.redirected_to = options + else redirect_to(url_for(options)) end -- cgit v1.2.3