aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2015-06-05 16:04:07 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2015-06-11 16:54:17 -0300
commit1fd42f33385fb2b6647d2d43faec0399e2e3118c (patch)
tree2f1092b062a96f07786c7c73072429d7343951fd
parent6c165773117dc7e60f5bb4762e58c7c522d69fcc (diff)
downloadrails-1fd42f33385fb2b6647d2d43faec0399e2e3118c.tar.gz
rails-1fd42f33385fb2b6647d2d43faec0399e2e3118c.tar.bz2
rails-1fd42f33385fb2b6647d2d43faec0399e2e3118c.zip
Mention that doing nothing in Rails API controllers returns 204
-rw-r--r--actionpack/lib/action_controller/api.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/api.rb b/actionpack/lib/action_controller/api.rb
index 6fab19296d..d8149e0232 100644
--- a/actionpack/lib/action_controller/api.rb
+++ b/actionpack/lib/action_controller/api.rb
@@ -38,7 +38,7 @@ module ActionController
# can use <tt>render :json</tt> and brothers freely in your controllers. Keep
# in mind that templates are not going to be rendered, so you need to ensure
# your controller is calling either <tt>render</tt> or <tt>redirect</tt> in
- # all actions.
+ # all actions, otherwise it will return 204 No Content response.
#
# def show
# @post = Post.find(params[:id])