class ActionView::TemplatePath

def self.virtual(name, prefix, partial)

Convert name, prefix, and partial into a virtual path string
def self.virtual(name, prefix, partial)
  if prefix.empty?
    "#{partial ? "_" : ""}#{name}"
  elsif partial
    "#{prefix}/_#{name}"
  else
    "#{prefix}/#{name}"
  end
end