I often tell people that muscle is built in the kitchen, not in the gym. Stick to compound exercises and consume a high protein caloric surplus diet.
What the post above talks about is about taking enough calories and protein for you to be able to build muscle, normal diets very rarely include enough to build muscle optimally and it can be harder to actually eat enough than to lift enough.