Show More
Commit Description:
add grader list...
Commit Description:
add grader list git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@57 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/controllers/graders_controller.rb | 18 lines | 434 B | text/x-ruby | RubyLexer |
class GradersController < ApplicationController
before_filter :authenticate
def list
@grader_processes = GraderProcess.find(:all,
:order => 'updated_at desc')
@stalled_processes = GraderProcess.find_stalled_process
end
def clear
grader_proc = GraderProcess.find(params[:id])
grader_proc.destroy if grader_proc!=nil
redirect_to :action => 'list'
end
end