Enable creation of subunits

This commit is contained in:
2024-01-22 02:09:46 +01:00
parent 917764fd71
commit 0e8bc18620
6 changed files with 30 additions and 15 deletions

View File

@@ -2,7 +2,7 @@ Rails.application.routes.draw do
devise_for :users, path: '', path_names: {registration: 'profile'},
controllers: {registrations: :registrations}
resources :units, except: [:show]
resources :units, except: [:show], path_names: {new: '(/:id)/new'}
resources :users, only: [:index, :show, :update] do
member do