Show More
Commit Description:
added codejom controller, show status in public
Commit Description:
added codejom controller, show status in public
File last commit:
Show/Diff file:
Action:
app/controllers/codejom_controller.rb | 13 lines | 348 B | text/x-ruby | RubyLexer |
class CodejomController < ApplicationController
before_filter :admin_authorization
before_filter :authenticate
def index
@user = User.find(session[:user_id])
@problems = Problem.find(:all)
@available_problems = @problems.find_all {|p| not p.available }
@activated_problems = @problems.find_all {|p| p.available }
end
end