class ActionView::RenderParser
def partial_to_virtual_path(render_type, partial_path)
def partial_to_virtual_path(render_type, partial_path) if render_type == :partial || render_type == :layout partial_path.gsub(%r{(/|^)([^/]*)\z}, '\1_\2') else partial_path end end