aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/4_2_release_notes.md
diff options
context:
space:
mode:
authorBenjamin Quorning <bquorning@zendesk.com>2015-07-03 09:46:12 +0200
committerBenjamin Quorning <bquorning@zendesk.com>2015-08-21 09:04:51 +0200
commit3ec3ac619274d9e759f95e6c003895429e988646 (patch)
treed8c4bcc4b2549b66e98ea8e18f30e9e638ae76ca /guides/source/4_2_release_notes.md
parent4bcab1cdb8f3d9cfc601d5d76598770c1babe38f (diff)
downloadrails-3ec3ac619274d9e759f95e6c003895429e988646.tar.gz
rails-3ec3ac619274d9e759f95e6c003895429e988646.tar.bz2
rails-3ec3ac619274d9e759f95e6c003895429e988646.zip
4.2 release notes about `render` status options
Diffstat (limited to 'guides/source/4_2_release_notes.md')
-rw-r--r--guides/source/4_2_release_notes.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/guides/source/4_2_release_notes.md b/guides/source/4_2_release_notes.md
index 684bd286bc..8a59007420 100644
--- a/guides/source/4_2_release_notes.md
+++ b/guides/source/4_2_release_notes.md
@@ -227,6 +227,17 @@ restore the old behavior.
If you do this, be sure to configure your firewall properly such that only
trusted machines on your network can access your development server.
+### Changed status option symbols for `render`
+
+Due to a [change in Rack](https://github.com/rack/rack/commit/be28c6a2ac152fe4adfbef71f3db9f4200df89e8), the symbols that the `render` method accepts for the `:status` option have changed:
+
+- 306: `:reserved` has been removed.
+- 413: `:request_entity_too_large` has been renamed to `:payload_too_large`.
+- 414: `:request_uri_too_long` has been renamed to `:uri_too_long`.
+- 416: `:requested_range_not_satisfiable` has been renamed to `:range_not_satisfiable`.
+
+Keep in mind that if calling `render` with an unknown symbol, the response status will default to 500.
+
### HTML Sanitizer
The HTML sanitizer has been replaced with a new, more robust, implementation