```ruby
Rails.application.routes.draw do
  devise_for :users
  get 'welcome/index'
  root 'welcome#index'

  resources :docs
end
```

Change root of application for authenticated user
user
```ruby
Rails.application.routes.draw do
  devise_for :users
  get 'welcome/index'
  resources :docs

  authenticated :user do
    root "docs#index", as: "authenticated_root"
  end

  root 'welcome#index'  
end
```
assistant