rails-caf/config/routes.rb
Jez Caudle 1b0956bb0c Updated to Rails 7.1.4
Add fiddle, ostruct and logger to the Gem file
Now using Ruby 3.3.5
Add more text to caf_text.yml
2024-10-10 09:14:16 +01:00

22 lines
469 B
Ruby

Rails.application.routes.draw do
devise_for :users
resources :companies do
resources :cafs
end
resources 'cafs', only: [:show] do
resources :subprincipleitems, only: [:edit, :update]
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 to: redirect('/users/sign_in')
end