Set up automatic railing placement for stair or ramp creation.
You can select the railing type, and for a stair, specify whether to position the railing on the treads or stringers.
Circulation panel
(Ramp).
Circulation panel
(Stair by Component).
(Railing). 
(Place on Host) tool.
(Finish Edit Mode).