instance method
render_to_string
Ruby on Rails 3.0.20
Since v3.0.20Signature
render_to_string(*args, &block)
Raw rendering of a template to a string. Just convert the results of render_to_body into a String. :api: plugin
Parameters
-
argsrest -
blockblock
Source
# File actionpack/lib/abstract_controller/rendering.rb, line 99
def render_to_string(*args, &block)
options = _normalize_args(*args, &block)
_normalize_options(options)
render_to_body(options)
end
Defined in actionpack/lib/abstract_controller/rendering.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::Rendering