Proper way to repaint aluminum rails
I used autobody primer and autobody spray paint for metal rails.  Need to allow a few hours after priming.  And a good 2 hours between each top coat or you can end up with bubbles and build up.  

This can be bought at big box or auto parts store (and many more colors if you buy online).