Variety of improvements and additions:
[selectricity] / app / models / candidate.rb
index 41d743b3a55ed07c0184605cbba600ba2ebc5c84..a0e492e8c1f98a6848efc5215db07de5b62f4c7a 100644 (file)
@@ -1,2 +1,8 @@
 class Candidate < ActiveRecord::Base
+  belongs_to :election
+
+  def <=>(other)
+   self.name <=> other.name 
+  end
+
 end

Benjamin Mako Hill || Want to submit a patch?