Description:
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
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r15:ef7a1ef3afd0 - - 1 file changed: 2 inserted, 0 deleted
@@ -2,12 +2,14 | |||
|
2 | 2 | |
|
3 | 3 | before_filter :authenticate, :except => [:index, :login] |
|
4 | 4 | |
|
5 | 5 | verify :method => :post, :only => [:submit], |
|
6 | 6 | :redirect_to => { :action => :index } |
|
7 | 7 | |
|
8 | + layout 'application' | |
|
9 | + | |
|
8 | 10 | def index |
|
9 | 11 | redirect_to :action => 'login' |
|
10 | 12 | end |
|
11 | 13 | |
|
12 | 14 | def login |
|
13 | 15 | MainController.layout 'login' |
You need to be logged in to leave comments.
Login now