instance method
render_to_string
Ruby on Rails 3.2.22.5
Since v3.1.12Signature
render_to_string(*)
Overwrite render_to_string because body can now be set to a rack body.
Parameters
-
argsrest
Source
# File actionpack/lib/action_controller/metal/rendering.rb, line 22
def render_to_string(*)
if self.response_body = super
string = ""
response_body.each { |r| string << r }
string
end
ensure
self.response_body = nil
end
Defined in actionpack/lib/action_controller/metal/rendering.rb line 22
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Rendering