From 9a859a318d9abddbb77a2eb84c6794dc1e40113f Mon Sep 17 00:00:00 2001 From: JG Date: Wed, 15 Jun 2022 07:30:43 +0100 Subject: [PATCH] route to locations --- config/routes.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 3e4492127..10ca9b9c2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -35,7 +35,11 @@ Rails.application.routes.draw do get "edit/password", to: "users#edit_password" end - resources :schemes, path: "/supported-housing", only: %i[index show] + resources :schemes, path: "/supported-housing", only: %i[index show] do + member do + get "locations", to: "schemes#locations" + end + end resources :users do member do