method

setup

rails latest stable - Class: ActionView::PartialRenderer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

setup(context, options, as, block)
private

Sets up instance variables needed for rendering a partial. This method finds the options and details and extracts them. The method also contains logic that handles the type of object passed in as the partial.

If +options[:partial]+ is a string, then the @path instance variable is set to that string. Otherwise, the +options[:partial]+ object must respond to to_partial_path in order to setup the path.