There are many clubs, pubs and bars located around the medina. A few discotheques provide large dance floors so you can plenty of dancing space. Drinks in the discos can be quite pricy compared to other things in Rabat but the atmosphere is definitely well worth checking out. You will find more foreigners than locals in these discos.
There are no dress codes for clubbing but locals tend to be more conservative, compared to Americans or Europeans. To avoid catching too much attention, try to dress low-key. Keep your little skimpy, diamond-studded dress for a trip somewhere else.