From 67456bb979d1124faf4dacec05f410479e38d695 Mon Sep 17 00:00:00 2001 From: Roland Jesse Date: Sat, 23 Jun 2012 23:12:39 +0200 Subject: [PATCH] FogBugz #132: Redirect user to /contacts when she is already signed in. --- app/controllers/welcome_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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