K.P.
Why dont you sew up a long strip of fabric with a little batting in it for padding and sew strings on it and tie it to the railing so he is biting that instead? It would be easy to make and fun. So many different materials you could use. Then you wouldnt have to worry about him biting on it.
He may just be teething.