Wiring a ceiling fan with two cables in power box
I'm attempting to wire a fan where a light fixture used to be. There are two cable in the power box. Cable one has black, white, and ground. Cable two has black, white, red, and ground. I assume the one with the red goes to the light switch and the other cable continues to other sources (outlets).
I've attempted a couple of wirings, and one popped the breaker.
Addendum: I've managed to get the fan working and the outlets working, but I can't get the light. Could I have burnt out the switch when the breaker popped? I currently have the black and blue from the fan hooked up to the red in Cable one. I have the two blacks from Cable one and two together (the two from the power box), and all three whites together (from the two cables and the fan.
I now have all the whites together, all the blacks together, and just the red to the blue of the fan. Still no light (but everything else is functioning properly).
Help please!