method

partial_path

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ObjectRendering
partial_path(object, view) 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.

Show source
Register or log in to add new notes.