Namespace
Module
Methods
Included Modules
Class Public methods
new()
          
          
          
          
          
            📝 Source code
# File actionview/lib/action_view/rendering.rb, line 32
def initialize
  @_rendered_format = nil
  super
endInstance Public methods
render_to_body(options = {})
          
          
          
          
          
            📝 Source code
# File actionview/lib/action_view/rendering.rb, line 119
def render_to_body(options = {})
  _process_options(options)
  _process_render_template_options(options)
  _render_template(options)
endview_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 newActionViewinstance for a controller and we can also pass the arguments.
- 
View#render(option)— ReturnsStringwith the rendered template.
Override this method in a module to change the default behavior.
📝 Source code
# File actionview/lib/action_view/rendering.rb, line 109
def view_context
  view_context_class.new(lookup_context, view_assigns, self)
endview_context_class()
          
          
          
          
          
            📝 Source code
# File actionview/lib/action_view/rendering.rb, line 95
def view_context_class
  self.class.view_context_class
end