I opened the Nav example which comes with the standard Bootstrap download (bootstrap-3.0.0\\examples\\navbar\\index.html) and added vertical dividers between two of the links.>
I find using the pipe character with some top and bottom padding works well. Using a div with a border will require more CSS to vertically align it and get the horizontal spacing even with the other elements.