voter.destroy
redirect_to quickvote_url( :ident => params[:ident] )
end
-
- def sort_candidates
- @vote = Vote.find(params[:id])
-
- @vote.rankings.each do |ranking|
- ranking.rank = params['rankings-list'].index(ranking.candidate.id.to_s) + 1
- ranking.save
- end
- render :nothing => true
- end
def mapvoters
@map = GMap.new("map_div_id")
@results = @election.results
@candidates = {}
@election.candidates.each {|c| @candidates[c.id] = c}
+ @names = @election.names_by_id
@sidebar_content = render_to_string :partial => 'results_sidebar'
end