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
send is the method you're looking for.