1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Added status in API documentation for ActionController::Renderer#render

This commit is contained in:
Sreeram Venkitesh 2022-09-16 18:48:14 +05:30
parent 26826eb354
commit 9c751a1b05

View file

@ -81,6 +81,7 @@ module ActionController
# * <tt>:json</tt> - Renders the provided hash or object in JSON. You don't
# need to call <tt>.to_json</tt> on the object you want to render.
# * <tt>:body</tt> - Renders provided text and sets content type of <tt>text/plain</tt>.
# * <tt>:status</tt> - Specifies the HTTP status code to send with the response. Defaults to 200.
#
# If no <tt>options</tt> hash is passed or if <tt>:update</tt> is specified, then:
#