Skip to content

Commit 45a906e

Browse files
committed
fix root issue
1 parent f151e94 commit 45a906e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/controllers/welcome_controller.rb

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ class WelcomeController < ApplicationController
22
before_action :authenticate_user!, except: [:home]
33

44
def home
5-
byebug
65
if user_signed_in?
76
redirect_to dashboard_base_index_path
87
end

config/routes.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Rails.application.routes.draw do
22

3-
root :to => 'dashboard/base#index'
4-
3+
root :to => 'welcome#home'
4+
55
namespace :dashboard do
66
root :to => 'base#index'
77
get 'base/index'
@@ -29,6 +29,7 @@
2929
put 'users/update' => 'users#update'
3030
get '/welcome/home' => 'welcome#home'
3131

32+
3233
devise_for :users, except: [:index], controllers: {
3334
sessions: 'users/sessions', omniauth_callbacks: 'users/omniauth_callbacks', users: 'users'
3435
}, :path => 'devise'

0 commit comments

Comments
 (0)