From 89edb5e07a37916570bcdf9c224b7682b7ef61e3 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Mon, 19 Mar 2018 09:00:48 -0400 Subject: [PATCH] Create a controller --- app/controllers/people_controller.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/controllers/people_controller.rb diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb new file mode 100644 index 0000000..0847377 --- /dev/null +++ b/app/controllers/people_controller.rb @@ -0,0 +1,7 @@ +class PeopleController < ApplicationController + def index + # render({ :json => { :message => 'hi', :status => 200 } }) + # render json: message: 'hi', status: 200 # doesn't work because nested objects are unguessable + render json: { message: 'hi', status: 200 } + end +end