From a46dd0eba53bb73e475a18c21cf73965a2bd4770 Mon Sep 17 00:00:00 2001 From: Alex Sherman Date: Thu, 2 Jan 2020 19:02:20 +0500 Subject: [PATCH] Add :show action to admin api_user routes In application_helper.rb we are generating link to creator/updater, but if contact creator is API user, there is an error as we are trying to create link_to(api_user) without having a :show route. This commit fixes this. Closes #1458 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 8cc5a5721..135fe8eb0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -271,7 +271,7 @@ Rails.application.routes.draw do resources :admin_users # /admin/api_users is mainly for manual testing - resources :api_users, only: :index do + resources :api_users, only: [:index, :show] do resources :certificates do member do post 'sign'