I\'m trying to return a 200 status with an empty body but rails returns a body with a single space. i.e. content-length 1
For instance, this code generates a body wi
This appears to work
render :text => ""
For Rails 3, you could use:
render :nothing => true
In Rails 5, render :nothing => true is deprecated (planned for removal in 5.1)
Use
def action head :ok end
Credit to this question for the Rails 5 solution.