Change namespace for defaults controllers

To allow proper path prefix for view partials when using
config.action_view.prefix_partial_path_with_controller_namespace
This commit is contained in:
2024-11-09 21:12:51 +01:00
parent f402e6ba00
commit 537cd18336
11 changed files with 31 additions and 10 deletions

View File

@@ -8,8 +8,8 @@ Rails.application.routes.draw do
end
end
namespace :units do
resources :defaults, only: :index
namespace :default do
resources :units, only: :index
end
resources :users, only: [:index, :show, :update] do