If you are trying to iterate through the columns of the definition object object you can use the content_columns array, so h.content_columns.each do |column| # column.name contains the column name # h.send(column.name) will return the value end
Colin