Try this, a rubber band, threaded over the hook, hang it on the rail and then hook the band onto the other part of the coat hanger.
The hook of the hanger (the metal hook that is, that goes over the rail) is over the top of the rail and the rubber band under it forming a circle for want of a better description.
Hope that makes sense to you.