1 class VoterController < ApplicationController
9 password = params[:vote][:password] if params[:vote]
10 if @voter = FullVoter.find(:all, :conditions => [ "password = ?", password ] )[0]
11 render :action => 'fullvote'
17 # remove any existing votes and reload
25 @vote.votestring = params[:vote][:votestring]
28 redirect_to :action => 'index'
35 render :action => 'thanks'
37 redirect_to :action => 'index'
43 password = params[:id]
44 @voter = FullVoter.find(:all, :conditions => [ "password = ?", password ] )[0]