FogBugz #132: Redirect user to /contacts when she is already signed in.
This commit is contained in:
parent
3bf2941096
commit
67456bb979
1 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
# -*- coding: utf-8; -*-
|
||||
class WelcomeController < ApplicationController
|
||||
def index
|
||||
# Ask Devise whether or not the user is already signed in.
|
||||
if user_signed_in? then
|
||||
redirect_to contacts_path
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue