Being able to do soul grinds is almost a must when it comes to doing a makio because you need to be able to lock your soul foot in and it's a tough skill to learn. It is also a good idea to practice this move by doing stall on ledges or stairs for balance.
Approach the rail just like you are going to do a soul grind. Make sure you jump up high and get your weight on top of the rail. Place your soul foot on the rail and lock it in. The other foot can be doing a number of things!! The typical is to grab it with a free hand or place it next to the souling skate. Soul like normal and hop off of the rail.