I've used rubber stoppers and sheet metal screws. Works perfectly. Go to Home Depot and get the stoppers in the right size. Then screw the bar ends into the stopper using a sheet metal or wood screw. Voila!!

-brent