We have this baby gate to keep our puppies from going up to the second floor and dirtying our carpet.  Easy to use and inexpensive.