Is there a better way to read a property from a model if you have a
string that contains the property name that you want to read?

Here is what I am doing now:

   eval('@tolerance2.' + @size[2])

I create the @tolerance2 object by using a .find() in Rails, and I have
the string value which the name of the property I need off of the model.

I'm thinking there is a better Ruby way to do this.

Thanks.

-- 
Posted via http://www.ruby-forum.com/.