X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/277d9e323c1c9c525c1cea4590dc71bc56aeed06..c405443c19a18c645aacc16848502f5b91461feb:/app/controllers/quickvote_controller.rb diff --git a/app/controllers/quickvote_controller.rb b/app/controllers/quickvote_controller.rb index e7a285b..d842f63 100644 --- a/app/controllers/quickvote_controller.rb +++ b/app/controllers/quickvote_controller.rb @@ -1,5 +1,5 @@ class QuickvoteController < ApplicationController - layout 'hc' + layout 'main' model :quick_voter model :quick_vote model :vote @@ -12,7 +12,7 @@ class QuickvoteController < ApplicationController def create if params[:quickvote] @quickvote = QuickVote.new(params[:quickvote]) - + # store the candidate grabbed through ajax and stored in flash @quickvote.candidatelist = flash[:candlist] @@ -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