search for: anotherbar

Displaying 1 result from an estimated 1 matches for "anotherbar".

Did you mean: another_var
2006 Feb 28
1
Updating only some of the fields of a table.
It''s not clear to me how to save data to only some of the fields of a table. To update individual fields I can do something like this: @foo = Foo.new @foo.bar = "hello!" @foo.anotherbar = "hello again" @report.save However what if I only want to save the field "anotherbar" and don''t want the final insert or save query to contain the field "bar" at all? If I do somethig like this... @foo = Foo.new @foo.anotherbar = "hello again"...