method

partial_to_virtual_path

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: RenderParser
partial_to_virtual_path(render_type, 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 actionview/lib/action_view/render_parser.rb, line 176
        def partial_to_virtual_path(render_type, partial_path)
          if render_type == :partial || render_type == :layout
            partial_path.gsub(%{(/|^)([^/]*)\z}, '\1_\2')
          else
            partial_path
          end
        end
Register or log in to add new notes.