A bit of a conundrum around using JSON for updating resources:
What's a GUI to do when it wants a nice reply for updating an object? Do I have to resort to explicit rendering?
The 204 No Content
response is the default behavior from respond_with
. You can either do the explicit renders if you want something different, or if you want a different behavior consistently you can define your own ActionController::Responder
subclass.
I'd recommend reading the source of the default responder, and checking out some other ones here: