to_partial_path()
Instance Public methods
Returns a string
identifying the path associated with the
object. ActionPack uses this to find a
suitable partial to represent the object.
1 2 3 4 5 6 | class Person include ActiveModel::Conversion end person = Person. new person.to_partial_path # => "people/person" |
Please login to continue.