Hi Larky,
It depends on how much work you want to do, but if you want your hardware to be completely hidden, this is how I go about it. The nut is in the leg, and the bolt is replaced by a length of studding and another nut.
1. I cut a veneer about 3 or 4mm thick off the outside face of the leg.
2. Counterbore a hole the A/F size of the nut. For an M12 nut this is 17mm, if memory serves me correctly. (Not 100% certain on that).
3. Drill right through at 1/2".
4. Pull an M12 nut into the counterbored hole so that it is beneath the surface, and glue the veneer back on. It is now invisible, but you can screw into it from the other side.
5. On the inside face of the leg I rout a channel, about 120mm long and 1/2" wide and 1/4" deeper than the centre of the board. This is then rebated to 1/4" above the cente line of the board and a filler piece glued in over it. This creates a channel 1/2" square, which gives a bit of clearance for 12mm studding.
6. I rout a pocket on the inside face of the board, 120mm from the end, and about 100x50mm in size. I rout to within about 3mm of the far face. This creates a recess big enough to get your second nut into and use a spanner on it.
7. So, insert a length of studding into the leg, slide the rails onto the studding, attach a washer and nut inside the recess and tighten up with a spanner. Very strong, very neat, very cheap.
Cheers
Steve