diff options
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 416388dfa7..160318c98b 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -478,7 +478,7 @@ module ActionController #:nodoc: def render_text(text = nil, status = nil, &block) #:doc: return if performed? add_variables_to_assigns - @response.headers["Status"] = status || DEFAULT_RENDER_STATUS_CODE + @response.headers["Status"] = status.to_s || DEFAULT_RENDER_STATUS_CODE @response.body = block_given? ? block : text @performed_render = true end |