I solder the wires directly to the outside of the rails. This is the most direct an reliable connection you can make. Make sure when doing this that there is no solder on the top or inside of the rail. This method is also easy to hide is you ballast. In addition I solder each connecting that uses a rail joiner. This avoids any issues with the track separating and the electrical connections deteriorating over time.