Weight distribution is key to rails. Even though it may seem awkward at first, your weight on your front foot should be very close to the same your back foot.
Someone else gave this example of staying on a rail earlier. Think of jumping into a skateboard. You wouldn't land with most of your weight leaning back.
Just try all this shit on boxes first. After that take it too some thick rails and learn from there.