You can use 40-way IDE Ribbon cables, but you need to be sure the IDC Headers on the Ribbon have full 40 pin connectivity.
CN160 on the I/O Card goes to LONG Header on the Mobo & CN150 on the I/O card goes to SHORT Header on the Mobo.
Also be sure to align Pin 1 on Mobo port to Pin 1 on the I/O Header port. ;-)
Best Wishes,
Kin