I have a before_save
in my model
before saving the record to the database...I'd like to print out the autoincremented ID
that will be inserted. My table has a column id
in it.
I tried
before_save :printId
def printId
puts "ID that will be inserted is: " + self.id
end
this does not work...