From c022caaee10ae50945e071b912c77627f01b29a3 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 18 Oct 2019 12:20:25 +0300 Subject: [PATCH] Remove duplicate route --- app/views/admin/domains/_domain.html.erb | 2 +- app/views/admin/domains/partials/_owner.haml | 2 +- config/routes.rb | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/views/admin/domains/_domain.html.erb b/app/views/admin/domains/_domain.html.erb index 6431833e6..8b69f9010 100644 --- a/app/views/admin/domains/_domain.html.erb +++ b/app/views/admin/domains/_domain.html.erb @@ -1,6 +1,6 @@ <%= link_to domain, admin_domain_path(domain) %> - <%= link_to domain.registrant, admin_registrant_path(domain.registrant) %> + <%= link_to domain.registrant, admin_contact_path(domain.registrant) %> <%= l domain.expire_time %> <%= link_to domain.registrar, admin_registrar_path(domain.registrar) %> diff --git a/app/views/admin/domains/partials/_owner.haml b/app/views/admin/domains/partials/_owner.haml index 611cd7dc6..f91cd2177 100644 --- a/app/views/admin/domains/partials/_owner.haml +++ b/app/views/admin/domains/partials/_owner.haml @@ -4,7 +4,7 @@ .panel-body %dl.dl-horizontal %dt= t(:name) - %dd= link_to(@domain.registrant, [:admin, @domain.registrant]) + %dd= link_to @domain.registrant, admin_contact_path(@domain.registrant) %dt= t(:id) %dd= @domain.registrant.code diff --git a/config/routes.rb b/config/routes.rb index 4dfa7cc86..0486284d5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -269,8 +269,6 @@ Rails.application.routes.draw do resources :white_ips end - resources :registrants, controller: 'contacts' - resources :contacts do collection do get 'search'