method

render_to_string

rails latest stable - Class: ActionController::Rendering
render_to_string(*)
public

Similar to #render, but only returns the rendered template as a string, instead of setting self.response_body.