Mortises are used to connect the two rails to the ends.

dsc00003_2.jpg