Goal: How to fix an armrest to a chair?

Which of the following methods is more reasonable for accomplishing this goal?
Design an L shaped wooden structure of required size and fix it on to the chair by nailing it in.