How do you get the hearthome gym leader to come to the gym?

If you're playing Diamond or Pearl, beat the Veilstone and Pastoria gym leaders first. If you return to hearthrome city after that, she should be there.