Crap, I broke the ribbon connector, can someone show/explain

I was trying to put the ribbon cable into the ribbon connector for the ghost trap pedal, but ended up snapping the plastic, I have no idea how to connect this thing. And do I need two of them or what? How does the ribbon connect to the grey box?