Slowly getting there.

This commit is contained in:
2022-07-17 18:01:19 +01:00
parent dc739cc189
commit 3cfbbc0c0b
2 changed files with 8 additions and 3 deletions

View File

@@ -6,8 +6,12 @@ Rails.application.routes.draw do
resources :cafs
end
authenticated :user do
root to: 'home#index', as: :authenticated_root
end
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
# Defines the root path route ("/")
root "home#index"
root to: redirect('/users/sign_in')
end