# <http://www.gnu.org/licenses/>.
class QuickvoteController < ApplicationController
+ helper :sparklines
layout 'main'
require_dependency "quick_voter"
require_dependency "quick_vote"
end
end
flash.keep(:candidate_names)
- render_partial 'candidate_list'
+ render :partial => 'candidate_list'
end
#############################################################
@voter.ipaddress = request.env["REMOTE_ADDR"]
@voter.save
- # save the time the vote was made for statistical use
- @voter.vote.time = Time.now
-
# toggle the confirmation bit
@voter.vote.confirm!