diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-30 13:38:49 -0400 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-30 13:38:49 -0400 |
| commit | 9b750d1ebf5ae6a5c60b69c9df9348bc9aa1d730 (patch) | |
| tree | 09dd92ae9b7a54c9542927db0a472f857dddcde4 | |
| parent | 8e05e5ad408aeefe0c272d5330049909d0cbf934 (diff) | |
clients: fix show path
| -rw-r--r-- | app/views/home/index.html.haml | 2 | ||||
| -rw-r--r-- | config/routes.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index ea03837..52fcd4c 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -41,7 +41,7 @@ onItemAdd: function(uuid) { document.getElementById('searcharticle').innerHTML = '' document.getElementById('searcharticle').ariaBusy = 'true' - window.location.href = "#{clients_path}?uuid=" + uuid; + window.location.href = "#{show_clients_path}?uuid=" + uuid; }, }); diff --git a/config/routes.rb b/config/routes.rb index 10ca030..a4d68b9 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,7 +16,7 @@ Rails.application.routes.draw do resources :clients, only: [ :new ] do post 'create', on: :collection - get 'show', on: :collection + get 'show', on: :collection, as: 'show' get 'find', on: :collection get 'info', on: :collection end |
