mirror of
https://github.com/github/rails.git
synced 2026-01-30 00:38:00 -05:00
Oops.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6758 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user