Namespace
Methods
R
V
Included Modules
Instance Public methods
render_to_body(options = {})
# File actionview/lib/action_view/rendering.rb, line 80
def render_to_body(options = {})
  _process_options(options)
  _render_template(options)
end
rendered_format()
# File actionview/lib/action_view/rendering.rb, line 85
def rendered_format
  Mime[lookup_context.rendered_format]
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

View#render

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 70
def view_context
  view_context_class.new(view_renderer, view_assigns, self)
end
view_context_class()
# File actionview/lib/action_view/rendering.rb, line 57
def view_context_class
  @_view_context_class ||= self.class.view_context_class
end
view_renderer()

Returns an object that is able to render templates. :api: private

# File actionview/lib/action_view/rendering.rb, line 76
def view_renderer
  @_view_renderer ||= ActionView::Renderer.new(lookup_context)
end