From 1fd42f33385fb2b6647d2d43faec0399e2e3118c Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Fri, 5 Jun 2015 16:04:07 -0300 Subject: Mention that doing nothing in Rails API controllers returns 204 --- actionpack/lib/action_controller/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 render :json 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 render or redirect in - # all actions. + # all actions, otherwise it will return 204 No Content response. # # def show # @post = Post.find(params[:id]) -- cgit v1.2.3