Namespace
Module
Methods
Constants
RENDER_FORMATS_IN_PRIORITY | = | [:body, :plain, :html] |
Instance Public methods
render_to_body(options = {})
📝 Source code
# File actionpack/lib/action_controller/metal/rendering.rb, line 51
def render_to_body(options = {})
super || _render_in_priorities(options) || " "
end
🔎 See on GitHub
render_to_string(*)
Overwrite render_to_string
because body can now be set to a Rack body.
📝 Source code
# File actionpack/lib/action_controller/metal/rendering.rb, line 40
def render_to_string(*)
result = super
if result.respond_to?(:each)
string = +""
result.each { |r| string << r }
string
else
result
end
end
🔎 See on GitHub