From f9bb2a22711b71403d44819dafef6af89c0563a8 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 26 Jun 2022 13:36:30 +0200 Subject: [PATCH] Adjust action name for theme resource following the general convention of using `destroy` now instead of `delete` --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index df26473b..89886964 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -67,7 +67,7 @@ Rails.application.routes.draw do namespace :settings do get :theme, to: redirect('/settings/theme/edit') - resource :theme, controller: :theme, only: %i[edit update delete] + resource :theme, controller: :theme, only: %i[edit update destroy] end resolve('Theme') { [:settings_theme] } # to make link_to/form_for work nicely when passing a `Theme` object to it, see also: https://api.rubyonrails.org/v6.1.5.1/classes/ActionDispatch/Routing/Mapper/CustomUrls.html#method-i-resolve