From: "Jan E." Date: 2012-07-17T20:59:04+09:00 Subject: Re: undefined method error OK, I see what you mean. You want to use the values of "database_columns" as method names. However, you cannot simply write ".database_columns[0]". This will be interpreted as calling the method "database_columns". You have to use "send" or "public_send", which allows you to pass the method name as a string: rid.send(database_columns[0], '(value for title)') -- Posted via http://www.ruby-forum.com/.