So I am kinda confused here...
What am I supposed to do after beating the second gym? Am I supposed to go to Route 12 to continue the story or what?
You need to talk to the grunts guarding the cave east of the city. After that yes, I went to Route 12, but there are rocks on Route 8 as well, and I don't know if you can do the story from that way too.