Skip to content

Commit

Permalink
Oops.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6758 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed May 18, 2007
1 parent 45a7903 commit d8d6ef8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions actionpack/lib/action_controller/base.rb
Expand Up @@ -1032,6 +1032,10 @@ def redirect_to(options = {}) #:doc:
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
Expand Down

0 comments on commit d8d6ef8

Please sign in to comment.