method

partial_path

partial_path(object = @object)
private

Obtains the path to where the object’s partial is located. If the object responds to to_partial_path, then to_partial_path will be called and will provide the path. If the object does not respond to to_partial_path, then an ArgumentError is raised.

If prefix_partial_path_with_controller_namespace is true, then this method will prefix the partial paths with a namespace.