You cannot use Rock Smash to bypass Ravaged Path in Pokémon Pearl. Here's why:
You receive Rock Smash from the Move Tutor in Veilstone City after defeating the Veilstone Gym Leader. By that point, you have already cleared Ravaged Path and moved on to the next story segment.
Ravaged Path is intentionally blocked to guide you along the main storyline. It is not meant to be opened with Rock Smash.
Follow the main story: head to the next Gym Leader and continue the plot. The path will clear naturally as you advance, allowing you to explore it later at your leisure.