Both, I go to the gym after work so I bring with me some fruit to have when I end work. Then gym, then home and dinner.
If I don't eat before the gym I'm starving, as I have lunch at 12:00.
If you are serious about gymming you should eat 7-8times a day. More meals, but smaller. Keeps a better balance for the body. =)