From ad410b963369ec6b55526401c3873e6076b18b5f Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 30 Jul 2026 13:43:26 +0200 Subject: Retire the unroutable scaffold views Nine generator leftovers for actions that either do not exist or never render HTML. menu_items/show goes with its route and its action, since deleting the template alone would turn a dead page into a missing-template error; pages_controller has only #preview, so its four CRUD views were unreachable by any route; and nodes#update redirects on every path. --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 862647df..9793c6a6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -105,7 +105,7 @@ Cccms::Application.routes.draw do resource :otp_enrollment, :only => [:show, :create, :update, :destroy] resource :otp_challenge, :only => [:new, :create] - resources :menu_items do + resources :menu_items, :except => :show do member do post :sort end -- cgit v1.3