I have added the acts_as_authenticated plugin to code, and have gotten VERY BASIC...
[selectricity] / app / controllers / site_controller.rb
index 47ae2cbd87af5dbde48f59c1fdbb6feb44c92f4d..3307d88a27e0e31c0c9e9fa99ce1efafb6fdb595 100644 (file)
@@ -1,8 +1,9 @@
 class SiteController < ApplicationController
   layout 'hc'
-  model :user, :election
+  model :user, :election, :account
 
   def index
+    @quickvotes = QuickVote.find_all(["quickvote = 1"]).sort {|a,b| b.enddate <=> a.enddate}[0..1]
     # if the person claims they are logged in
     if session[:user]
 

Benjamin Mako Hill || Want to submit a patch?