diff options
Diffstat (limited to 'actionpack/lib/action_controller/response.rb')
-rwxr-xr-x | actionpack/lib/action_controller/response.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/response.rb b/actionpack/lib/action_controller/response.rb index a574fbca75..2e6c5fcc37 100755 --- a/actionpack/lib/action_controller/response.rb +++ b/actionpack/lib/action_controller/response.rb @@ -10,6 +10,8 @@ module ActionController def redirect(to_url, permanently = false) @headers["Status"] = permanently ? "301 Moved Permanently" : "302 Found" @headers["location"] = to_url + + @body = "<html><body>You are being <a href=\"#{to_url}\">redirected</a>.</body></html>" end end end
\ No newline at end of file |