mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
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
This commit is contained in:
parent
a68c27af32
commit
a46dd0eba5
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue