# HG changeset patch # User jittat # Date 2008-02-08 04:42:54 # Node ID ef7a1ef3afd06590a028b6beab157035c8770ec5 # Parent eeff05df9da18bd15d975f4cebee40ffbe8bd8e4 fix some layout problem: first time at main after login, using wrong layouts git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@39 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,6 +5,8 @@ verify :method => :post, :only => [:submit], :redirect_to => { :action => :index } + layout 'application' + def index redirect_to :action => 'login' end