There's also the rule about 'native sons' that prevents states from casting their total votes for a candidate that was born there; something the popular vote doesn't reflect.
A state can cast all of its electoral votes to a Presidential candidate that is a resident of that state. It's just that the electors can not elect a President and Vice-President from the same state. Which is why Dick Cheney got his residency changed to Wyoming real quick before the 2000 election (he had lived in Texas for the past few years).
The Electoral College is a crock because it puts more power in the hands of small states, offsets the poweries of large majorities in states, and tends to produce an election that only focuses on a few "battleground" states, while the rest of the nation gets ignored. It's undemocratic, but you do elect the Electors (who vote for the person they are supposed to vote for a good 99.5%+ of the time), so you are voting for your candidate in a way. It's just that it only counts for your statewide total and not in any national popular vote.