]> projects.mako.cc - selectricity/commit
Modified the methods in graphs controller so they would work for Selectricity, but...
author<jlsharps@mit.edu> <>
Mon, 6 Aug 2007 23:56:39 +0000 (19:56 -0400)
committer<jlsharps@mit.edu> <>
Mon, 6 Aug 2007 23:56:39 +0000 (19:56 -0400)
commit277d9e323c1c9c525c1cea4590dc71bc56aeed06
tree5ce8320f729fb78fad978be6620e50c97a58c03b
parent62d55f6e7b7a956714166a5ed409368937218997
Modified the methods in graphs controller so they would work for Selectricity, but can't get them to successfully display yet. It seems that the 'url_for' helper might not be able to handle a :controller an argument. It doesn't throw an error, just displays nothing. I also removed various deprecated methods and replaced them with their updated counterparts in site_controller, and in some of the views. In addition I modified the confirm method in the QuickVote controller to save the time of the vote. I also changed what the voter.ip was logging because it wasn't working. Currently it says request.env["BLAH"] because I'm trying to vote multiple times in the same election for testing (not sure that jsut cahgnign the ip save feature is allowing that) but it will have to be request.env["REMOTE_ADDR"] in the long run. This is on line 108 of the QuickVote controller.
app/controllers/graphs_controller.rb
app/controllers/quickvote_controller.rb
app/controllers/site_controller.rb
app/models/election.rb
app/models/vote.rb
app/views/layouts/hc.rhtml
app/views/quickvote/results.rhtml
app/views/site/index.rhtml
config/environment.rb

Benjamin Mako Hill || Want to submit a patch?