Take a mellow edge into the rail.
Let off your edge, and begin your ollie.
Make sure you get your board over the rail, then rotate your tail over the rail.
Slap your board on at an angle.
Your momentum will level you out.
Keep your handle low.
Keep your weight on your heels and your chest up.