I want to use recently stored record ID in after_save callback, is that possible if yes how?
after_save :create_children
def create_children
self.id
end
Update: Sorry there was something going wrong with my save function, my bad, sorry to waste your time
Thanks
if you call reload() after saving the object, the self.id will be populated
I just tried it with this:
and in the console:
What else is going on in your model?