diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-09 14:19:36 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-09 14:19:36 +0200 |
| commit | 8310751d4db2854597d6379b24e346c65622972d (patch) | |
| tree | dd00ae2f671ab81cf292caf41b09c6da90fbc383 /app/controllers | |
| parent | 3ae22916cd5fd0f63ffacc7a9e1aa97d311b83e6 (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 'app/controllers')
| -rw-r--r-- | app/controllers/menu_items_controller.rb | 2 | ||||
| -rw-r--r-- | app/controllers/users_controller.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/menu_items_controller.rb b/app/controllers/menu_items_controller.rb index 1b1eb59..314d1ea 100644 --- a/app/controllers/menu_items_controller.rb +++ b/app/controllers/menu_items_controller.rb | |||
| @@ -14,7 +14,7 @@ class MenuItemsController < ApplicationController | |||
| 14 | end | 14 | end |
| 15 | 15 | ||
| 16 | def new | 16 | def new |
| 17 | @menu_item = MenuItem.new menu_item_params | 17 | @menu_item = MenuItem.new |
| 18 | end | 18 | end |
| 19 | 19 | ||
| 20 | def create | 20 | def create |
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index f01691f..6572b7a 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb | |||
| @@ -15,7 +15,7 @@ class UsersController < ApplicationController | |||
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | def new | 17 | def new |
| 18 | @user = User.new | 18 | @user = User.new(admin: params[:admin].present?) |
| 19 | end | 19 | end |
| 20 | 20 | ||
| 21 | def create | 21 | def create |
