From 3b32b40264738c5134224a0b905a82238d6f6cfe Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 7 Apr 2025 13:57:00 +0200 Subject: [PATCH] Move bubble recovery out from double nesting --- app/views/bubbles/show.html.erb | 2 +- config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/bubbles/show.html.erb b/app/views/bubbles/show.html.erb index 5eab871d8..fae887838 100644 --- a/app/views/bubbles/show.html.erb +++ b/app/views/bubbles/show.html.erb @@ -5,7 +5,7 @@
You have an unsaved work. Would you like to continue where you left off? - <%= button_to bucket_bubble_recover_path(@bubble.bucket, @bubble), class: "btn btn--reversed", data: { turbo_action: "replace" } do %> + <%= button_to bubble_recover_path(@bubble), class: "btn btn--reversed", data: { turbo_action: "replace" } do %> Restore <% end %>
diff --git a/config/routes.rb b/config/routes.rb index 065bfe7cd..0dfc07f7d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,6 +14,7 @@ Rails.application.routes.draw do resource :pin resource :pop resource :publish + resource :recover resource :watch resources :assignments @@ -51,7 +52,6 @@ Rails.application.routes.draw do resource :readings, only: :create scope module: :bubbles do - resource :recover resources :stagings end end