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
http://www.mcmaster.com/#threaded-inserts/=fyibwd
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!
http://www.mcmaster.com/#binding-posts/=fyidk1

Best of luck
Bill