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
Look at the head method:
Return a response that has no content (merely headers). The options argument is interpreted to be a hash of header names and values.