instance method
body
Ruby on Rails 4.1.16
Since v3.0.20Signature
body()
Returns the content of the response as a string. This contains the contents of any calls to render.
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 225
def body
strings = []
each { |part| strings << part.to_s }
strings.join
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 225
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response