Quantum rings as phase coherent detectors