Created
February 7, 2019 09:10
-
-
Save chez-shanpu/b4acd82f26ab0a5b0da0c3d254e39a2d to your computer and use it in GitHub Desktop.
bug-shooting-challenge-pre-2
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 < 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