1 class VoterController < ApplicationController
8 @voter = Voter.find_all( [ "password = ?", password ] )[0]
12 password = params[:id]
13 @voter = Voter.find_all( [ "password = ?", password ] )[0]
15 # destroy the old vote if that's what we need to do
16 @voter.vote.destroy if @voter.vote
19 @voter.vote = Vote.new
20 @voter.vote.votestring = params[:vote][:votestring]