Skip to content

Instantly share code, notes, and snippets.

@get-me-power
Created July 1, 2019 09:37
Show Gist options
  • Save get-me-power/91c16a7047553c47a27628966daa1da6 to your computer and use it in GitHub Desktop.
Save get-me-power/91c16a7047553c47a27628966daa1da6 to your computer and use it in GitHub Desktop.
class UsersController < ActionController
def show
user = User.find(params[:id].to_i)
render json: user, except:[:crypted_password]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment