Permalink
Browse files

Sort home page by most recently updated on top

  • Loading branch information...
1 parent bf054f1 commit 2e07d9de4d2784d4d4f7340ed95d29eb9c8b614c @aaronpk committed Jun 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/application_controller.rb
@@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base
def index
authenticate
- @candidates = Candidate.all
+ @candidates = Candidate.find(:all, :order => "updated_at DESC")
@question = Question.new
@votes = {}
if @current_user

0 comments on commit 2e07d9d

Please sign in to comment.