# store the candidate grabbed through ajax and stored in flash
@quickvote.candidatelist = flash[:candlist]
# store the candidate grabbed through ajax and stored in flash
@quickvote.candidatelist = flash[:candlist]
candidate_name = CGI.escapeHTML(params[:ajax][:newcandidate])
unless candidate_name.strip.empty?
if flash.has_key?(:candlist) and flash[:candlist].instance_of?(Array)
candidate_name = CGI.escapeHTML(params[:ajax][:newcandidate])
unless candidate_name.strip.empty?
if flash.has_key?(:candlist) and flash[:candlist].instance_of?(Array)