I am attempting to set a Cabinet's Device's attributes to null in a disconnect method. cabinets_controller calls @cabinet.devices.destroy(@device) and that works ok. Before I do that I want to set @device.row_id = nil and @device.position = nil. They are both Fixnum and attr_accesible in the Device model. They are not being altered in the DB when I call this method. Is there a method to call on @device to make this happen?
Thanks.