Changeset 5634
- Timestamp:
- 11/26/06 05:04:57 (2 years ago)
- Files:
-
- branches/1-2-pre-release/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb (modified) (1 diff)
- branches/1-2-pre-release/actionpack/lib/action_controller/response.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb (modified) (1 diff)
- trunk/actionpack/lib/action_controller/response.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1-2-pre-release/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb
r1303 r5634 28 28 CGIMethods.parse_request_parameters(params, env_table) 29 29 end 30 31 def redirect(where)32 header({33 "Status" => "302 Moved",34 "location" => "#{where}"35 })36 end37 30 38 31 def session(parameters = nil) branches/1-2-pre-release/actionpack/lib/action_controller/response.rb
r5129 r5634 28 28 def redirect(to_url, permanently = false) 29 29 @headers["Status"] = "302 Found" unless @headers["Status"] == "301 Moved Permanently" 30 @headers[" location"] = to_url30 @headers["Location"] = to_url 31 31 32 32 @body = "<html><body>You are being <a href=\"#{to_url}\">redirected</a>.</body></html>" trunk/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb
r1303 r5634 28 28 CGIMethods.parse_request_parameters(params, env_table) 29 29 end 30 31 def redirect(where)32 header({33 "Status" => "302 Moved",34 "location" => "#{where}"35 })36 end37 30 38 31 def session(parameters = nil) trunk/actionpack/lib/action_controller/response.rb
r5129 r5634 28 28 def redirect(to_url, permanently = false) 29 29 @headers["Status"] = "302 Found" unless @headers["Status"] == "301 Moved Permanently" 30 @headers[" location"] = to_url30 @headers["Location"] = to_url 31 31 32 32 @body = "<html><body>You are being <a href=\"#{to_url}\">redirected</a>.</body></html>"