A rail connector includes a base and an outwardly extending projection rotatably connected with the base. The base has a flat lower portion and an upper portion which contains an opening that is parallel to the base lower portion. The projection includes upper and lower ends, the lower end being arranged in the base opening and the upper end having a threaded outer surface and extending outwardly from the base. The base is connected with a rail and the projection is connected with a baluster. The projection is rotatable relative to the base and allows the baluster to pivot to a desired angle.