From: Date: Mon, 25 Aug 2008 23:36:54 +0000 (-0400) Subject: An @edit=true declaration was missing from edit_voters that prevented the voter delet... X-Git-Url: https://projects.mako.cc/source/selectricity-live/commitdiff_plain/79b260d1caad8ef8559a9d8a9c46068acafdf9fb?ds=inline;hp=eed818c2f36f08638c65244ea79485b87cb7ddc8 An @edit=true declaration was missing from edit_voters that prevented the voter delete button from appearing. I palced the declaration back in the controller method rather than in the view file, which is different from the new_voters.rhtml file. --- diff --git a/app/controllers/election_controller.rb b/app/controllers/election_controller.rb index be2fb3d..3e16964 100644 --- a/app/controllers/election_controller.rb +++ b/app/controllers/election_controller.rb @@ -233,6 +233,7 @@ class ElectionController < ApplicationController if params.has_key?( :raw_voter_list ) process_incoming_voters( params[:raw_voter_list] ) end + @edit = true @raw_voter_list = RawVoterList.new end