Undeprecate redirect_to with Hash argument and additional url_for parameters. Closes #7837.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6430 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper
2007-03-16 05:21:19 +00:00
parent 8a9496cb4e
commit f596dda0bb
3 changed files with 13 additions and 1 deletions

View File

@@ -22,6 +22,11 @@ class RedirectController < ActionController::Base
redirect_to :back
end
def redirect_with_parameters
session[:params] = { :user => 'test'}
redirect_to session[:params], :acton => 'hello_world'
end
def rescue_errors(e) raise e end
def rescue_action(e) raise end
@@ -97,6 +102,11 @@ class RedirectTest < Test::Unit::TestCase
get :redirect_to_back
}
end
def test_redirect_with_parameters
get :redirect_with_parameters
end
end
module ModuleTest