From 43d6914159023f495eb8cda0316d0f05b39f939e Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 8 Nov 2022 16:52:55 +0000 Subject: [PATCH] Update route --- app/views/locations/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/locations/show.html.erb b/app/views/locations/show.html.erb index bacfaacc1..7ef4ed56c 100644 --- a/app/views/locations/show.html.erb +++ b/app/views/locations/show.html.erb @@ -17,7 +17,7 @@ <%= summary_list.row do |row| %> <% row.key { attr[:name] } %> <% row.value { attr[:name].eql?("Status") ? status_tag(attr[:value]) : details_html(attr) } %> - <% row.action(text: "Change", href: location_edit_name_path(location_id: @location.id, id: @scheme.id)) if attr[:edit] %> + <% row.action(text: "Change", href: location_edit_name_path(@scheme, location_id: @location)) if attr[:edit] %> <% end %> <% end %> <% end %>