From 49f8cecb7d45b4f6ee6ed0d8bbe9c67a5e1ec90d Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Thu, 22 Mar 2018 14:33:35 -0400 Subject: [PATCH] inhabitant/home url segments --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index d152908..e494873 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -18,7 +18,7 @@ Rails.application.routes.draw do delete '/companies/:id', to: 'companies#delete' put '/companies/:id', to: 'companies#update' - post '/locations/:id/people', to: 'people#create' - post '/people/:id/locations', to: 'locations#create' + post '/locations/:id/inhabitants', to: 'people#create' + post '/people/:id/home', to: 'locations#create' end