From 875dde1eba682fe657bddf385193908a4712737b Mon Sep 17 00:00:00 2001 From: Jack Bracewell Date: Wed, 14 Sep 2016 17:16:43 +0100 Subject: Correct `render text:` deprecation message The default Content-Type is `text/html`, not `text/plain`. --- actionpack/lib/action_controller/metal/rendering.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/metal') diff --git a/actionpack/lib/action_controller/metal/rendering.rb b/actionpack/lib/action_controller/metal/rendering.rb index 46ddf48926..f8f91ed41c 100644 --- a/actionpack/lib/action_controller/metal/rendering.rb +++ b/actionpack/lib/action_controller/metal/rendering.rb @@ -90,7 +90,7 @@ module ActionController render as `text/plain`, `render html: 'HTML'` to render as `text/html`, or `render body: 'raw'` to match the deprecated behavior and render with the default Content-Type, which is - `text/plain`. + `text/html`. WARNING end -- cgit v1.2.3