parent
73a6fac860
commit
89edb5e07a
@ -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
|
||||
Loading…
Reference in new issue