Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def running
- @current_menu_position = 1
- @page_title = 'Most Interesting Hard Drive Contest Leaderboard'
- unless CONTEST_STARTED
- redirect_to :action => 'index'
- return
- end
- @users = ContestUser.find(:all, :include => { :word_user => :user_stat }).collect(&:word_user).sort_by { |user| -user.user_stat.views_received }[0, 100]
- @users << ContestUser.find(:first, :include => { :word_user => :user_stat }).word_user unless @users.find { |user| user == @word_user }
- end
Add Comment
Please, Sign In to add comment