method

view_context

Importance_1
v5.1.7 - Show latest stable - 0 notes - Class: ActionView::Rendering
view_context() public

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.

Show source
Register or log in to add new notes.