Maryland, Minnesota, Maine and Washington State passed gay marriage by popular vote (i.e., in referenda). Gay marriage was passed by votes of the Legislatures in Connecticut, Washington DC, Rhode Island, New Hampshire, New York, Delaware, Hawaii, Illinois and Vermont. The New Jersey legislature passed gay marriage, but Gov. Christie vetoed it (but then failed to defend a lawsuit seeking gay marriage from the courts).
No, in Nov 2012 Minnesota voters rejected a constitutional amendment which would have banned same sex marriage. At the same time they returned control of both the Minnesota House and Senate to the Democrats. In May 2013, the Minnesota legislature passed same sex marriage and the Democratic governor signed it. So, enacted by the legislature, not by popular vote.