From 11d61c630ae34024ff46cd3bce27ef969b7636de Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 27 Mar 2019 15:15:00 -0600 Subject: [PATCH] Filter PeopleController#index on thieves --- app/controllers/people_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index e56ce1b..78152b9 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -1,4 +1,6 @@ class PeopleController < ApplicationController def index + @people = Person.where(occupation: 'thief') + render @people end end