# HG changeset patch # User jittat # Date 2008-02-08 06:57:37 # Node ID af60767c1f7fb9f5421542e356eb1d81b793f685 # Parent 0757f4b2714af4bed59e94f535ef71c716333f8a fix layout problem, again git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@41 6386c4cd-e34a-4fa8-8920-d93eb39b512e diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -5,7 +5,6 @@ verify :method => :post, :only => [:submit], :redirect_to => { :action => :index } - layout 'application' def index redirect_to :action => 'login' @@ -17,6 +16,7 @@ end def list + MainController.layout 'application' @problems = Problem.find_available_problems @prob_submissions = Array.new @user = User.find(session[:user_id])