A planar ballistic structure is predicted to be highly effective in filtering electron spin from an unpolarized source into two output fluxes with the opposite and practically pure spin polarizations. The operability of the proposed device relies on the peculiar spin-dependent transmission properties of the T-shaped connector in the presence of the Rashba spin-orbit interaction as well as the difference in the dynamic phase gains of the two alternative paths around the ring resonator through upper and lower branches for even and odd eigenmodes.