projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Major update of Selectricity to work with Rails 2.2.2 from 1.2!
[selectricity]
/
app
/
controllers
/
quickvote_controller.rb
diff --git
a/app/controllers/quickvote_controller.rb
b/app/controllers/quickvote_controller.rb
index 768bdea261ba28000363e25e4da6d3c24b61e7e9..c32d585dd53cc441d8e36d7a72fe74be9edaec90 100644
(file)
--- a/
app/controllers/quickvote_controller.rb
+++ b/
app/controllers/quickvote_controller.rb
@@
-17,6
+17,7
@@
# <http://www.gnu.org/licenses/>.
class QuickvoteController < ApplicationController
# <http://www.gnu.org/licenses/>.
class QuickvoteController < ApplicationController
+ helper :sparklines
layout 'main'
require_dependency "quick_voter"
require_dependency "quick_vote"
layout 'main'
require_dependency "quick_voter"
require_dependency "quick_vote"
@@
-94,7
+95,7
@@
class QuickvoteController < ApplicationController
end
end
flash.keep(:candidate_names)
end
end
flash.keep(:candidate_names)
- render
_partial
'candidate_list'
+ render
:partial =>
'candidate_list'
end
#############################################################
end
#############################################################
@@
-163,9
+164,6
@@
class QuickvoteController < ApplicationController
@voter.ipaddress = request.env["REMOTE_ADDR"]
@voter.save
@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!
# toggle the confirmation bit
@voter.vote.confirm!
Benjamin Mako Hill
||
Want to submit a patch?