Should you eat before or after exercise??

I've got an exercise class at 7.30-8.15pm tonight and wondered what peoples advice was about when I should eat my dinner ?
At the moment I'm thinking of eating at about 6pm ... help please!!!