How do I dynamically get an attribute value of an ActiveRecord object?
for example, I have a variable named attr_name.
I want to do something like this:
person = Person.find(1)
attr_name = 'address'
# address = person.<function_name>(attr_name)
which function_name can be used?