Enabling rotation

How do you enable rotation (rotating the device from portrait to landscape)?