Rails coding question


#1

Hi,

If we have two tables like:

create table students {
name text,
id integer
}

create table evaluations {
comments text
} inherits (a)

is it possible to transfer a row from table evaluations to table
students without explicitly typing all the column names?

For example, if we have a row from table evaluations called eval_row,
and a row from students called stud_row, can we do…

for column in Student.columns
??? = eval_row.send(column.name)
end

What would go in the ???

Thanks,
John