Created
August 14, 2014 14:54
-
-
Save guilleiguaran/97da38df1dc6f71b44cd to your computer and use it in GitHub Desktop.
This file contains 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
class UsersController < ApplicationController | |
def index | |
@users = User.all | |
respond_to do |format| | |
format.json{ render json: @users } | |
format.capn{ render capn: @users } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment