From 7d3d83e7b4996fa161ba4f276ca65edf3902c1a2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 19 Feb 2005 20:33:15 +0000 Subject: Use full status for render_component from within a controller git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/components.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/components.rb b/actionpack/lib/action_controller/components.rb index 681c7b6d9a..86bf5d8138 100644 --- a/actionpack/lib/action_controller/components.rb +++ b/actionpack/lib/action_controller/components.rb @@ -8,7 +8,7 @@ module ActionController #:nodoc: protected def render_component(options = {}) #:doc: response = component_response(options) - render_text(response.body, response.response_code) + render_text(response.body, response.headers["Status"]) end private -- cgit v1.2.3