Let's say that a person table/model has id and name:
class Person < ActiveRecord::Base
def height
return '10 feet tall'
end
end
How do I allow it to return the 'height' method in the results so that instead of this:
=> #<Person id: 1, name: "bob">
It is this:
=> #<Person id: 1, name: "bob", height: "10 feet tall">