How do I dynamiclly get an attribute value for an activerecord object?
for example I have a variable named attr_name. I want to do something like this
attr_name
If doing this using send
send
address = person.send("function_name" + "attr_name")