The adults should be pretty obvious because the males have balls. Note that the balls on gerbils aren't as big as on hamsters or mice, though. They are obvious, though, compared to the females.
On very young gerbils(first week or two), the spacing between the anus and urethra is less apparent, but with practice you can certainly tell between genders even on fresh pinkies with this method. Nipples will also be visible on females, until their fur starts to get too long to see through. Here are some helpful pictures I found(not mine):

Hard to see the anus on the male above, but you can see on the female that the anus and urethra are right next to each other, and her nipples are visible still.

This one isn't labelled very well, so it might be a bit confusing. But the space between the two holes on the male is almost twice as long as on the female.
The older they get, the more obvious the spacing difference becomes.

The gerbils above are about 3 weeks old, so still very young, but the difference is much easier to see.

These ones are adults, or close to it(the female looks pretty small; normally the females get a bit larger than males) You can see the space on this adult male is very long, and he's got his testicles.
EDIT: You can also see the "bald patch" on the male's tummy; this where his scent glands are, and you'll often see gerbils rubbing their tummies on things or doing an "alligator crawl" to put their scent on things that they own. The bald patch can be quite pronounced on males, but it's rarely visible on females.
Hope this helps!