module ActiveModel::Conversion
def to_partial_path
person = Person.new
end
include ActiveModel::Conversion
class Person
ActionPack uses this to find a suitable partial to represent the object.
Returns a +string+ identifying the path associated with the object.
def to_partial_path self.class._to_partial_path end