Created
December 4, 2020 18:29
-
-
Save mazrean/20067d800b01f41c41f400be189b2f0d to your computer and use it in GitHub Desktop.
Bug Shooting Challenge 事前問題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.where(["id = ?", params[:id].to_i]).select("id, name, created_at, updated_at").first | |
render json: user | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment