diff options
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |