summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-09 14:19:36 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-09 14:19:36 +0200
commit8310751d4db2854597d6379b24e346c65622972d (patch)
treedd00ae2f671ab81cf292caf41b09c6da90fbc383 /config
parent3ae22916cd5fd0f63ffacc7a9e1aa97d311b83e6 (diff)
Major resource view cleanup
Remove dead pages#index and occurrences resource; fix menu_items#new menu_items#new called menu_item_params, which requires a submitted menu_item key that can never be present on a fresh GET -- new only ever needs a blank record to render against. pages#index and the entire occurrences resource were unmodified Rails scaffold generator output, unlinked from any nav and unreachable except by direct URL. pages#index had no controller action at all (@pages was never assigned); occurrences#index queried every row with no scoping or pagination and its layout referenced a scaffold.css asset that no longer exists in the pipeline. Neither is a real editorial surface -- occurrences are auto-generated from an event's RRULE and were never meant to be browsed as a flat list. Removed rather than repaired. pages#preview and pages#sort_images remain, now as explicit routes rather than under a full resources :pages block.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb
index da46e5c..5d68828 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -20,15 +20,10 @@ Cccms::Application.routes.draw do
20 scope '(:locale)', locale: /de|en/ do 20 scope '(:locale)', locale: /de|en/ do
21 21
22 resources :tags 22 resources :tags
23 resources :occurrences
24 resources :events 23 resources :events
25 24
26 resources :pages do 25 get 'pages/:id/preview', to: 'pages#preview', as: :preview_page
27 member do 26 put 'pages/:id/sort_images', to: 'pages#sort_images', as: :sort_images_page
28 get :preview
29 put :sort_images
30 end
31 end
32 27
33 resources :nodes do 28 resources :nodes do
34 collection do 29 collection do