If you're searching for an "8th Gym Leader door" in Pokémon Ruby, you won't find one—the game only has seven Gyms. The confusion often stems from other regions (Kanto, Sinnoh, Unova) having eight Gyms, or from misremembering the Elite Four as an eighth Gym.
Note: In Pokémon Emerald, the 8th Gym is in Sootopolis City led by Juan (Water), replacing Wallace who becomes Champion. In Ruby/Sapphire, Wallace is the 8th Gym Leader (Water) in Sootopolis, making it eight Gyms total. The original answer was incorrect: Ruby does have eight Gyms. The 8th is Sootopolis Gym – Wallace (Water). After that, you challenge the Elite Four and Champion Steven Stone.
If you're stuck at a locked door in Sootopolis, you must first awaken Kyogre (in Sapphire) or Groudon (in Ruby) at the Cave of Origin, then the Gym door will open.