]> projects.mako.cc - selectricity-live/blobdiff - app/controllers/quickvote_controller.rb
Added the Gruff library to the lib/ directory of the the rails folder, and the
[selectricity-live] / app / controllers / quickvote_controller.rb
index 1e5b14226b0049a83c3bab7477a75de2ee57bbd5..da2903d1a01fa3fecf1f5d0a665c49801f5ff538 100644 (file)
@@ -160,16 +160,6 @@ class QuickvoteController < ApplicationController
     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") 
@@ -212,6 +202,7 @@ class QuickvoteController < ApplicationController
     @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
   

Benjamin Mako Hill || Want to submit a patch?