]> projects.mako.cc - selectricity-live/commit
Fix full voter addition bug where the regex flunks the trailing \r on middle items...
authorJohn Dong <jdong@mit.edu>
Thu, 30 Aug 2007 15:55:30 +0000 (11:55 -0400)
committerJohn Dong <jdong@mit.edu>
Thu, 30 Aug 2007 15:55:30 +0000 (11:55 -0400)
commit48f6efa2fbd1e9fd1dd7638ed482fc8ce5a3e136
treeaa067f99dc9d358a7d2803537d1aaabf5f885989
parent2857ac6197adfe972a5e6129a3f26af9e148edb1
Fix full voter addition bug where the regex flunks the trailing \r on middle items in the list. At the same time, make sure to only add a voter to the election if it passes validation. This prevents cases where the voter shows up on the AJAX list but mysteriously disappears after confirming.
app/controllers/election_controller.rb
db/schema.rb

Benjamin Mako Hill || Want to submit a patch?