diff options
author | Xavier Noria <fxn@hashref.com> | 2009-07-17 00:37:41 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-07-17 00:37:41 +0200 |
commit | 2637c5eee1cc67f28055b54ef9cc9a71f1e7c8f2 (patch) | |
tree | 96163777c5d4c46f67902109f56d2100778ad20e /actionpack/lib | |
parent | 0fc481d7c834ae905ebb2e52f47c3c3656ebd1c9 (diff) | |
download | rails-2637c5eee1cc67f28055b54ef9cc9a71f1e7c8f2.tar.gz rails-2637c5eee1cc67f28055b54ef9cc9a71f1e7c8f2.tar.bz2 rails-2637c5eee1cc67f28055b54ef9cc9a71f1e7c8f2.zip |
redirect_to forwards options to url_for if it is a Hash (the example with articles_url does not work indeed because of that), understanding :params is a particular case of that
This reverts commit 0fc481d7c834ae905ebb2e52f47c3c3656ebd1c9.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/base/base.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/base/base.rb b/actionpack/lib/action_controller/base/base.rb index 7bed86a77b..e541d24e31 100644 --- a/actionpack/lib/action_controller/base/base.rb +++ b/actionpack/lib/action_controller/base/base.rb @@ -114,8 +114,6 @@ module ActionController # * <tt>String</tt> starting with <tt>protocol://</tt> (like <tt>http://</tt>) - Is passed straight through as the target for redirection. # * <tt>String</tt> not containing a protocol - The current protocol and host is prepended to the string. # * <tt>:back</tt> - Back to the page that issued the request. Useful for forms that are triggered from multiple places. - # * <tt>:params</tt> - A hash containing the parameters to be passed as a GET request - # # Short-hand for <tt>redirect_to(request.env["HTTP_REFERER"])</tt> # # Examples: @@ -125,7 +123,6 @@ module ActionController # redirect_to "/images/screenshot.jpg" # redirect_to articles_url # redirect_to :back - # redirect_to articles_url, :params => {"name" => "Ruby"} # # The redirection happens as a "302 Moved" header unless otherwise specified. # |