From 4a5d6811b0d648c9bd1f43e655bbe18a03c93a50 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 20 Mar 2018 21:33:56 -0400 Subject: [PATCH] id for show is string --- app/controllers/people_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index 1f9ffb5..40aa266 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -6,7 +6,7 @@ class PeopleController < ApplicationController end def show - render json: Person.find(params[:id]) + render json: Person.find(params["id"]) end def create