Flowdock
method

_pick_partial_template

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: ActionView::Partials
_pick_partial_template(partial_path) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_view/partials.rb, line 228
      def _pick_partial_template(partial_path) #:nodoc:
        if partial_path.include?('/')
          path = File.join(File.dirname(partial_path), "_#{File.basename(partial_path)}")
        elsif controller
          path = "#{controller.class.controller_path}/_#{partial_path}"
        else
          path = "_#{partial_path}"
        end

        self.view_paths.find_template(path, self.template_format)
      end
Register or log in to add new notes.