Skip to content

Instantly share code, notes, and snippets.

@chez-shanpu
Created February 7, 2019 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chez-shanpu/b4acd82f26ab0a5b0da0c3d254e39a2d to your computer and use it in GitHub Desktop.
Save chez-shanpu/b4acd82f26ab0a5b0da0c3d254e39a2d to your computer and use it in GitHub Desktop.
bug-shooting-challenge-pre-2
class UsersController < ActionController
def show
user = User.find(params[:id].to_i)
render json: user.as_json(except: :crypted_password)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment