]> projects.mako.cc - selectricity/blob - app/controllers/site_controller.rb
8d2f8b2a63c46a719efac7da711c7ad646f7e458
[selectricity] / app / controllers / site_controller.rb
1 class SiteController < ApplicationController
2   layout 'vb'
3   model :user, :election
4
5   def index
6     @current_elections = session[:user].elections.sort do |a,b|
7       b.enddate <=> a.enddate
8     end
9
10     
11   end
12 end

Benjamin Mako Hill || Want to submit a patch?