An explicitly solvable model of the gated Aharonov-Bohm ring touching a quantum wire is constructed and investigated. The inverse spectral and scattering problems are discussed. It is shown that the Titchmarsh-Weyl matrix function associated with the boundary vertices determines a unique electric potential on the graph even though the graph contains a loop. This system gives another family of isospectral quantum graphs.