Merge pull request #37197 from unabridged/add-render-text-removal-to-5.1-upgrade-guide

[ci skip] Note removal of `render :text` & `:nothing` options from 5.1 upgrade guide
This commit is contained in:
Gannon McGibbon 2019-09-16 13:28:25 -04:00 committed by GitHub
commit dee5ece236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -530,6 +530,16 @@ To:
Rails.application.secrets[:smtp_settings][:address]
```
### Removed deprecated support to `:text` and `:nothing` in `render`
If your views are using `render :text`, they will no longer work. The new method
of rendering text with MIME type of `text/plain` is to use `render :plain`.
Similarly, `render :nothing` is also removed and you should use the `head` method
to send responses that contain only headers. For example, `head :ok` sends a
200 response with no body to render.
Upgrading from Rails 4.2 to Rails 5.0
-------------------------------------