I have done this two different ways based on two different bands I've been in, a third way for my solo recording, my friend did it a fourth for his solo recording, and ive heard other ways of doing it too. it all depends on what works for you.
-my first band we recorded scratch tracks to a metronome on separate tracks. then we layed down drums to the metronome/scratch tracks. the things to remember here are (1) use isolation headphones, or earbuds inside those phones they sell for the gun range (2) any screwup in timing by the drummer will actually create a second screwup when the drummer gets back in timing with the tracks (3) depending on the drummer, your scratch tracks might have to be absolutely *perfect* or they will screw up (4) depending on your drummer, this option might not even work at all.
-when I went to record my solo project, the songs were mine, I wrote them, and there had never been drums to any of them. I put up the mics, then sat at the kit and worked out a part for the song. five minutes later I told my gf to hit record and I would bang out the song, from start to finish, with no scratch tracks. this worked extremely well but only because I knew the songs extremely well.
-now in my next band we record all of the rhythm tracks together, just like its practice, then I mute the vocal track and re-record the vocals. this also works extremely well because we're a damn good live band.
-my friend, when making his solo project, actually recorded the rhythm guitar first. not the scratch track, but the actual rhythm track. he is such a good drummer that he laid the drums over it, no metronome or nothing.
-all of the old raegge recordings were recorded with a hybrid of the above...they would lay down bass and drums together in the same room. it was essential that the drums and bass be locked in together and sounding great. this also contributed the "live" feel to the music. then guitars, keys, and vocals would be overdubbed for the "studio" sound.
its all about whos playing the music and what works best for them and the final sound of the recording.