aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-10-30 13:38:49 -0400
committerRaghuram Subramani <raghus2247@gmail.com>2025-10-30 13:38:49 -0400
commit9b750d1ebf5ae6a5c60b69c9df9348bc9aa1d730 (patch)
tree09dd92ae9b7a54c9542927db0a472f857dddcde4
parent8e05e5ad408aeefe0c272d5330049909d0cbf934 (diff)
clients: fix show path
-rw-r--r--app/views/home/index.html.haml2
-rw-r--r--config/routes.rb2
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