Displaying 1 result from an estimated 1 matches for "to_hsh".
Did you mean:
to_hash
2008 Jul 02
3
copying variables between rows
Is there an elegant way of copying some variables from one row to
another row?
Here is the current code:
color = Color.find(id, :select => "a, b, c, d, e, f")
copy = Color.find(copy, :select => "c, d, e")
color.c = copy.c
color.d = copy.d
color.e = copy.e
color.update
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are