Created
November 12, 2016 14:00
-
-
Save 8parth/8ecea965d80f141b4f75f6e0f371abe1 to your computer and use it in GitHub Desktop.
fetch users
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
def index | |
@users = User.all | |
render json: @users | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment