From a341a8215b2f057eb920760b22b615b6e9ae0a62 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 15 Jul 2009 21:18:57 -0400 Subject: [PATCH] params with redirect_to docs --- actionpack/lib/action_controller/base/base.rb | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/actionpack/lib/action_controller/base/base.rb b/actionpack/lib/action_controller/base/base.rb index e541d24..b5a22d2 100644 --- a/actionpack/lib/action_controller/base/base.rb +++ b/actionpack/lib/action_controller/base/base.rb @@ -115,6 +115,8 @@ module ActionController # * String not containing a protocol - The current protocol and host is prepended to the string. # * :back - Back to the page that issued the request. Useful for forms that are triggered from multiple places. # Short-hand for redirect_to(request.env["HTTP_REFERER"]) + # * :params - A hash containing the parameters to be passed as a GET request + # # # Examples: # redirect_to :action => "show", :id => 5 @@ -123,6 +125,7 @@ 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. # -- 1.5.4.5