Turner is a quaint , conservative town on the outskirts of Salem, Oregon. It’s a village that, by a margin of two to one, supported Donald Trump over Hillary Clinton in 2016. In 2014, when a referendum on legalizing marijuana throughout Oregon came before the people of the town, they rejected it handily, with 57 percent voting “no.”

It passed statewide anyway, and in 2016 the people of Turner were again asked to vote on weed. This time the question was whether to allow recreational marijuana businesses in their community. To nobody’s surprise, they voted overwhelmingly — 63 percent — to prohibit the businesses in the unincorporated parts of their county. But to everybody’s surprise, this time, the town voted 51 percent in favor of allowing pot businesses within the city limits. “We were actually shocked,” Mayor Gary Tiffin told me.

The town’s collective spit-take was well-founded. They had screwed up. An in-depth analysis of all “local option” marijuana votes in Oregon persuasively suggests that Turner legalized marijuana businesses by mistake, as the result of two confusingly worded questions appearing at the bottom of a ballot.

The saga of marijuana in Turner, Oregon, is a prime example of both the benefits and limits of direct democracy.

The process started in 2014. At the time, despite strong public support for marijuana legalization, local politicians in Oregon — like in the rest of the country — were reluctant to embrace the reform. So, organizations used ballot initiatives to bypass state legislators and put the issue directly to the public. On the macro level, the system worked as intended: The voters got what they wanted, even when their representatives refused to represent them.

After the public approved Measure 91 in Oregon, legalizing marijuana across the state, the legislature enacted a new rule for local regulation, a compromise of sorts. In most places, if a city or county wanted to locally prohibit recreational marijuana businesses, they needed to put the ban on the next general election ballot. The problem in Turner was that people don’t always pay close attention to questions on local issues that appear near the bottom of their ballots.

As a result of the legislature’s modification, six counties and 54 cities in Oregon voted on local marijuana bans, creating a large data set to study. The results from all these local elections show that recreational marijuana doesn’t seem to suffer from a “NIMBY,” or “not in my backyard,” problem, nor does it benefit from a “YIMBY,” or “yes in my backyard,” mentality. Besides a few localities, which had unusual results due to unique circumstances, for the most part, how communities voted on statewide marijuana legalization, in 2014, matched very closely with how they voted in 2016, on local marijuana business bans. Voters in Oregon basically feel the same way about legalization in theory as they do in practice within their own communities. This is important to know moving forward, since politicians will sometimes oppose ideas that poll well in general, because they believe their voters won’t really support those same ideas being implemented near them. (Wind farms, compost centers, and other popular, environmentally beneficial projects are often opposed in practice by people who support them in general.)