Description:
fixed layout bugs again -- added explicit layout in main_controller
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@50 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r26:a3328dc4a80b - - 1 file changed: 2 inserted, 0 deleted
@@ -1,10 +1,12 | |||||
|
1 | class MainController < ApplicationController |
|
1 | class MainController < ApplicationController |
|
2 |
|
2 | ||
|
3 | before_filter :authenticate, :except => [:index, :login] |
|
3 | before_filter :authenticate, :except => [:index, :login] |
|
4 |
|
4 | ||
|
|
5 | + layout 'application' | ||
|
|
6 | + | ||
|
5 | verify :method => :post, :only => [:submit], |
|
7 | verify :method => :post, :only => [:submit], |
|
6 | :redirect_to => { :action => :index } |
|
8 | :redirect_to => { :action => :index } |
|
7 |
|
9 | ||
|
8 |
|
10 | ||
|
9 | def index |
|
11 | def index |
|
10 | redirect_to :action => 'login' |
|
12 | redirect_to :action => 'login' |
You need to be logged in to leave comments.
Login now