I'm swapping out our original, builder-grade disposal for a new one, and the one I ended up getting and starting to work with was wired with a plug. The original unit was connected to some 3-wire cable that vanishes into a hole in the wall on the back of the cabinet.
I figure the best way to approach this is to add an outlet -- is it as simple as connecting the existing 3 leads to an outlet? Should I use a GFCI? Should the outlet be recessed (if possible) or is it okay to mount it in a box on the back wall of the cabinet? The dishwasher is currently direct-wired as well and I think they're on the same circuit.
Thanks!
UPDATE:
I installed a metal box by screwing it to the back of the cabinet, and the cable is now coming through it. I attached the 3 wires directly to a GFCI switch, but whenever I flip the breaker on and toggle the wall switch to turn the disposal on, the breaker trips. So something's not right. I'm going to switch to a regular outlet and see if that helps.
UPDATE 2:
As requested, here are some pics of the wiring as it is now, pigtailed into an outlet. The GFCI outlet was the same as this except I wired it directly to the cable coming out of the wall, and used the terminals that weren't blocked out by the yellow LOAD sticker.