diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-18 01:21:48 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-18 01:21:48 +0000 |
commit | d8d6ef8a3d3bbb86d0581329bfd0c026312e8847 (patch) | |
tree | d08a1552444eceed114eb1e645ddfa2cc1a6cab1 /actionpack/lib | |
parent | 45a79034e413f81c4b2175d3e20ed65f9725f95b (diff) | |
download | rails-d8d6ef8a3d3bbb86d0581329bfd0c026312e8847.tar.gz rails-d8d6ef8a3d3bbb86d0581329bfd0c026312e8847.tar.bz2 rails-d8d6ef8a3d3bbb86d0581329bfd0c026312e8847.zip |
Oops.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6758 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-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 |