module ActiveModel::Conversion

def to_partial_path

person.to_partial_path # => "people/person"
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