]> projects.mako.cc - selectricity/blobdiff - app/controllers/application.rb
Custom embeddable code works for png's except for top_bar
[selectricity] / app / controllers / application.rb
index 7a725ba0f5e6df21d2585be0a6cfe3791040e1da..1387b29b10dd1e53e8b7252ef258164ec9e2ebf4 100644 (file)
@@ -49,7 +49,7 @@ class ApplicationController < ActionController::Base
   def sort_candidates
     
     @vote = Vote.find(params[:id])
   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
     @vote.rankings.each do |ranking|
       ranking.rank = params['rankings-list'].index(ranking.candidate.id.to_s) + 1
       ranking.save

Benjamin Mako Hill || Want to submit a patch?