how to get a 9 month old to go to sleep alone

As
How to sleep train a 9 month old. He won't go to sleep without being rocked. Tried to let him know I'm there and pat his butt and he doses off but the moment I walk away he's crying again. Any ideas? This is so difficult.