This seems to be basic but I\'m a Ruby/Rails beginner. I need to simply return HTTP 204 in a controller. Would
respond_to do |format| format.html end
If you don't want to render anything at all you can do this:
render :nothing => true, :status => 204
or like this:
render :nothing => true, :status => 204 and return
Or you can use the :status => 204 part with any other render command
:status => 204