diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index 141d9f0..75f7d1b 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -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