From 865211b0b54b86d82c9771da9f4a70024b8b04c1 Mon Sep 17 00:00:00 2001 From: evazion Date: Thu, 23 Feb 2017 19:46:33 -0600 Subject: [PATCH] dmails: remove unused `edit` template and `update` route. --- app/views/dmails/edit.html.erb | 12 ------------ config/routes.rb | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 app/views/dmails/edit.html.erb diff --git a/app/views/dmails/edit.html.erb b/app/views/dmails/edit.html.erb deleted file mode 100644 index 2777708ad..000000000 --- a/app/views/dmails/edit.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -
-
-

Edit Message

- <%= render "form", :dmail => @dmail %> -
-
- -<%= render "secondary_links" %> - -<% content_for(:page_title) do %> - Edit Message - <%= Danbooru.config.app_name %> -<% end %> diff --git a/config/routes.rb b/config/routes.rb index 2af146ac7..2a5321886 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -110,7 +110,7 @@ Rails.application.routes.draw do end end resources :delayed_jobs, :only => [:index] - resources :dmails do + resources :dmails, :only => [:new, :create, :index, :show, :destroy] do collection do get :search post :mark_all_as_read