mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Docs: note removal of render :text
option from 5.1 guide [ci skip]
This just makes it explicit that the deprecated :text option is completely removed in Rails 5.1
This commit is contained in:
parent
e8b3a46d2e
commit
bc06641fa7
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
-------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue