Like i siad before, I agree tha gandalf has the ring, its just when he gets it and who he gets it from that is in question.
I believe its mentioned in the chapter where the hobbits and gandalf go by isengard to head back to Rivendell and aragorn is seeing them off. Or its when they go to the grey havens.