Skip to content

Instantly share code, notes, and snippets.

@GiancarlosIO
Last active July 28, 2016 03:58
Show Gist options
  • Save GiancarlosIO/dedcba2f3db87a84e06341d27f23980e to your computer and use it in GitHub Desktop.
Save GiancarlosIO/dedcba2f3db87a84e06341d27f23980e to your computer and use it in GitHub Desktop.
# my_api/app/views/api/v1/users/index.json.jbuilder
json.array! @users do |user|
json.(user, :id, :email, :name)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment