From 5459df3cc567b3fd1bd11e365c928fd6a16dc49e Mon Sep 17 00:00:00 2001 From: Date: Sat, 12 Apr 2008 16:04:29 -0400 Subject: [PATCH 1/1] Fixed minor spelling errors on results pages, tried to fix quickvotes bug but unsuccesful. NO changes made to application and quickvote controller --- app/controllers/application.rb | 1 + app/controllers/quickvote_controller.rb | 1 + app/views/quickvote/thanks.rhtml | 2 +- app/views/voter/review.rhtml | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index d8b2560..7a725ba 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -47,6 +47,7 @@ class ApplicationController < ActionController::Base #both election_controller and quickvote_controller need this method def sort_candidates + @vote = Vote.find(params[:id]) @vote.rankings.each do |ranking| diff --git a/app/controllers/quickvote_controller.rb b/app/controllers/quickvote_controller.rb index f7ad5ff..fbf53d3 100644 --- a/app/controllers/quickvote_controller.rb +++ b/app/controllers/quickvote_controller.rb @@ -157,6 +157,7 @@ class QuickvoteController < ApplicationController redirect_to quickvote_url( :ident => params[:ident] ) else + # record the ip address for posterity @voter.ipaddress = request.env["REMOTE_ADDR"] @voter.save diff --git a/app/views/quickvote/thanks.rhtml b/app/views/quickvote/thanks.rhtml index d6ed8e0..5845448 100644 --- a/app/views/quickvote/thanks.rhtml +++ b/app/views/quickvote/thanks.rhtml @@ -12,7 +12,7 @@ preferences:

<% end %> -

Thanks you voting! You can:

+

Thank you for voting! You can: