This project is archived and is in readonly mode.
render :nothing => true should set HTTP status 204
-
Mike Riley
- State changed from new to invalid
- Importance changed from to
Hello Andreas,
I am going to mark this as invalid as this is not a bug with Rails. I did, however, want to give you information on this so it can help you. Based on this Ruby on Rails guide (http://guides.rubyonrails.org/layouts_and_rendering.html) you shouldn't be using render :nothing, but instead using the head method. It states:
The head method exists to let you send back responses to the browser that have only headers. It provides a more obvious alternative to calling render :nothing. The head method takes one response, which is interpreted as a hash of header names and values. For example, you can return only an error header:
head :bad_requestHope this helps.
Mike Riley