diff options
author | Prem Sichanugrist <s@sikac.hu> | 2014-02-14 13:11:20 -0500 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2014-02-18 12:11:41 -0500 |
commit | 76be30fe40679b468cacf26d0b24b179c3d339ba (patch) | |
tree | c5f0936f84ef0ef8bcbd3857a220ee2fa81c0fef /guides/source/action_controller_overview.md | |
parent | 79c4983f893da985806d3d59ac23836bccb906f8 (diff) | |
download | rails-76be30fe40679b468cacf26d0b24b179c3d339ba.tar.gz rails-76be30fe40679b468cacf26d0b24b179c3d339ba.tar.bz2 rails-76be30fe40679b468cacf26d0b24b179c3d339ba.zip |
Update guides for new rendering options
* Introduces `:plain`, `:html`, `:body` render option.
* Update guide to use `render :plain` instead of `render :text`.
Diffstat (limited to 'guides/source/action_controller_overview.md')
-rw-r--r-- | guides/source/action_controller_overview.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md index 222d86afe9..5b5f53c9be 100644 --- a/guides/source/action_controller_overview.md +++ b/guides/source/action_controller_overview.md @@ -1088,7 +1088,7 @@ class ApplicationController < ActionController::Base private def record_not_found - render text: "404 Not Found", status: 404 + render plain: "404 Not Found", status: 404 end end ``` |