Question: what to do after you beat the 7th gym in pokemon ruby?
Answer: You're supposed to surf south of Mossdeep until you hit a trench. Dive there and follow it until you hit a cave, the Seafloor Cavern. Go there and defeat the team members and you're right back on track.