Head okay vs ok + Data

EMBED

Mon May 18 2020 19:08:51 GMT+0000 (Coordinated Universal Time)

Saved by @ayazahmadtarar #ruby #rubyonrails


head :ok is shorthand for render nothing: true, status: :ok.

https://stackoverflow.com/questions/37512603/rails-attach-some-data-to-head-ok-response