1 class VoterController < ApplicationController
8 password = params[:vote][:password] if params[:vote]
9 if @voter = Voter.find_all( [ "password = ?", password ] )[0]
10 render :action => 'vote'
16 # remove any existing votes and reload
24 @vote.votestring = params[:vote][:votestring]
27 redirect_to :action => 'index'
34 render :action => 'thanks'
36 redirect_to :action => 'index'
42 password = params[:id]
43 @voter = Voter.find_all( [ "password = ?", password ] )[0]