Thanks for the advice. The "self" thing makes sense.
Interestingly, any attempts to set self.activeTrip caused a recursive
spiral of death ("Stack level too deep")
But I discovered that setting the active_trip_id property was the only
solution that worked safely, (also using "after :create" instead of
"before :save")
after :create do
# Set activeTrip if not already set:
if self.activeTrip.nil?
self.active_trip_id =
self.id
self.save
end
end