method

extract_partial_name_and_path

rails latest stable - Class: ActionView::PartialTemplate

Method deprecated or moved

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

extract_partial_name_and_path(view, partial_path)
private

No documentation available.

# File actionpack/lib/action_view/partial_template.rb, line 51
    def extract_partial_name_and_path(view, partial_path)
      path, partial_name = partial_pieces(view, partial_path)
      [File.join(path, "_#{partial_name}"), partial_name.split('/').last.split('.').first.to_sym] 
    end