I think I would rather be in the country for several reasons: Firstly, your closest neighbours would be much further away and thus you would have a better chance of not getting bit and having time to secure your house. Secondly, there would be more visual warning if and when the zombies came. As well, you would have less competition for food and would have the land around on which food could be grown if properly secured. There is also the chance that you may have a water source such as a river or pond that you are able to get water from to survive.
In the city, you would have a much harder time escaping zombies and the virus/zombie disease would spread much faster. In addition, there would be a significant number of people to fight for supplies, which would be much more scarce as well.