joshsverns joshsverns - 6 months ago 18
Ruby Question

rails: attach some data to "head :ok" response

In rails it is common practice to send a "head :ok" in response to a request. (https://github.com/search?l=Ruby&p=7&q=%22head+%3Aok%22&type=Code&utf8=%E2%9C%93)

Is it possible to send an json hash along with it?

Answer