]> projects.mako.cc - selectricity-live/blobdiff - app/controllers/quickvote_controller.rb
The user model has been modified so that it stores the user object itself in the...
[selectricity-live] / app / controllers / quickvote_controller.rb
index e7a285b7d45e7d0d8f8c22d2808b33a031a115ed..5482a25c99f3d46d12149a4c84ab02725c622f1b 100644 (file)
@@ -105,7 +105,7 @@ class QuickvoteController < ApplicationController
       
     else
       # record the ip address for posterity
-      @voter.ipaddress = request.env["BLAH"]
+      @voter.ipaddress = request.env["REMOTE_ADDR"]
       @voter.save
       
       # save the time the vote was made for statistical use, it doesn't

Benjamin Mako Hill || Want to submit a patch?