I just drilled feeder holes in the sides of the pipe, and screwed them in for my elevator rail. I tested it out this weekend at a little backyard railjam. PVC is the shit, it slides so well.
liquid nails on the entire base of the pvc pipes, then screw the pipes into the wood diagonally, using the holes at the end of the pipe so you don't have a hole on the top of the rail.