I, like most, know about the Ikea system. I was thinking the size of the torn out holes in the base may be too large.
the alternative may be to sink someting like this
into the top of the rail and bolt into it thought the two pieces.
Actually even better and cleaner is a Binding post. Please look at this!
Best of luck