Attaching end grain to flat grain is difficult with glue because end grain sucks glue like crazy.
So mechanical fastening is required. These screws are each about 2 1/2 inches long and combined
with the shallow dado on the side rail (a little tough to see here) provide a nice secure connection.