Namespace
Module
Methods
Included Modules
Instance Public methods
render_to_body(options = {})
📝 Source code
# File actionview/lib/action_view/rendering.rb, line 82
def render_to_body(options = {})
_process_options(options)
_render_template(options)
end
🔎 See on GitHub
rendered_format()
📝 Source code
# File actionview/lib/action_view/rendering.rb, line 87
def rendered_format
Template::Types[lookup_context.rendered_format]
end
🔎 See on GitHub
view_context()
An instance of a view class. The default view class is ActionView::Base
.
The view class must have the following methods: View.new[lookup_context, assigns, controller]
Create a new ActionView instance for a controller and we can also pass the arguments.
View#render(option)
Returns String with the rendered template
Override this method in a module to change the default behavior.
📝 Source code
# File actionview/lib/action_view/rendering.rb, line 73
def view_context
view_context_class.new(view_renderer, view_assigns, self)
end
🔎 See on GitHub
view_context_class()
📝 Source code
# File actionview/lib/action_view/rendering.rb, line 60
def view_context_class
@_view_context_class ||= self.class.view_context_class
end
🔎 See on GitHub