module ActionController::Rendering
def render_to_string(*)
--
instead of setting +self.response_body+.
Similar to #render, but only returns the rendered template as a string,
def render_to_string(*) result = super if result.respond_to?(:each) string = +"" result.each { |r| string << r } string else result end end