diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-09 13:26:23 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-09 13:26:23 +0200 |
| commit | 616a0d2d2ba15a7e176938ee829d60366fb6a9c2 (patch) | |
| tree | fe12e0ab804948f0e3ff37636859b05cef7871cc /config/routes.rb | |
| parent | 42b996e9197680a1955cfa5639462908677e5a94 (diff) | |
Attach an asset to a page from the asset's own page
The picker moves from assets/edit to assets/show, where the list of attached
pages already is.
A member route, POST assets/:id/attach_to_node, replaces the ride on #update.
Supersedes the picker wiring in the previous commit; what remains of it is
@attach_node in #create, the flash composition and the corrected hint.
Diffstat (limited to 'config/routes.rb')
| -rw-r--r-- | config/routes.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index a43769e6..e123a3fe 100644 --- a/config/routes.rb +++ b/config/routes.rb | |||
| @@ -26,7 +26,12 @@ Cccms::Application.routes.draw do | |||
| 26 | 26 | ||
| 27 | scope '/admin' do | 27 | scope '/admin' do |
| 28 | resources :events | 28 | resources :events |
| 29 | resources :assets | 29 | |
| 30 | resources :assets do | ||
| 31 | member do | ||
| 32 | post :attach_to_node | ||
| 33 | end | ||
| 34 | end | ||
| 30 | 35 | ||
| 31 | resources :nodes do | 36 | resources :nodes do |
| 32 | collection do | 37 | collection do |
