Last active
July 15, 2016 16:51
-
-
Save orangeeli/138c0b79640a5a7dcd0b391be9cc88ee to your computer and use it in GitHub Desktop.
The person controller in an API context
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Api | |
| module V1 | |
| class GorillaController < ApplicationController | |
| def index | |
| @gorillas = Gorilla.all | |
| render json: {message: 'We are not extinct. Just well hidden.'} | |
| end | |
| end | |
| end | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment