The eighth gym is in Blackthorn City, just outside the Ice Cave.
You reach it by working through the Ice Cave, which is the gate between the earlier route and the city itself. In the games where Blackthorn is the final badge, this is also where the Dragon-type leader waits — so bring something that can handle dragon moves before you challenge him.