I used the wood because it痴 what I had laying around from another project. I don稚 plan on leaning on the side pieces, but it should help hold things from falling off the edge like a box or five gallon bucket. I like the metal bracket idea. I used lag screws and three inch deck screws.
Hopefully it won稚 rot, I plan on taking care of it.