edge badge
Namespace
Methods
N
R
V
Included Modules
Attributes
[R] rendered_format
Class Public methods
new()
# File actionview/lib/action_view/rendering.rb, line 31
def initialize
  @rendered_format = nil
  super
end
Instance Public methods
render_to_body(options = {})
# File actionview/lib/action_view/rendering.rb, line 101
def render_to_body(options = {})
  _process_options(options)
  _render_template(options)
end
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.

# File actionview/lib/action_view/rendering.rb, line 91
def view_context
  view_context_class.new(lookup_context, view_assigns, self)
end
view_context_class()
# File actionview/lib/action_view/rendering.rb, line 77
def view_context_class
  self.class.view_context_class
end