Galaxy ring formation