Until we are satisfied that little Ginger is completely house broken, we have a number of small fences that we can put in doorways. We have used these for dogs that we have had in the past – and they work well.
In the case of Ginger – well, not so well. In a very short amount of time, she figured out that if she grabbed the fence with her teeth she could pull it back into the room – and then escape. For a day, we tried just not using the fence and closing the door instead. This was not satisfactory. So, we are now simply training her to not touch the fence. Good luck with that!