class ActionDispatch::Response

def body

of any calls to render.
Returns the content of the response as a string. This contains the contents
def body
  strings = []
  each { |part| strings << part.to_s }
  strings.join
end