Ride up to the rail or box at a decent speed with your feet in ollie position. It may help to arrive with a bit of angle. When your near the object, pop an ollie and turn bs in order to land perpendicularly with the object. It helps to keep your should square with the object. Balance, and when your ready to get off, turn 90. Land clean and ride away.