I made a cable to do just this - I sold it on ebay a week or three ago.
You can buy a crimp-on male 40 pin IDC header, a crimp-on female 40 IDC connector and a bit of 40 way IDC ribbon. Crimp it all together and dangle the male end out of the back of the case.
Check the image
IDE CableAndy K