1 class SiteController < ApplicationController
7 session[:user] = User.find(session[:user].id)
8 @current_elections = session[:user].elections.sort do |a,b|
9 b.enddate <=> a.enddate
16 @quickvote = QuickVote.new(params[:quickvote])
17 if @quickvote.reviewed? and @quickvote.save
18 @quickvote = @quickvote.reload
19 render :action => 'success_quickvote'