Last active
June 8, 2016 10:48
-
-
Save scaffeinate/4e28ca3e9d6d0c80b86b8e8e3f5a7ad1 to your computer and use it in GitHub Desktop.
Revisions
-
scaffeinate revised this gist
Jun 8, 2016 . 1 changed file with 5 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,8 @@ module Api::V1 class UsersController < ApplicationController def show @user = User.find_by(email: params[:email]) render json: @user end end end -
scaffeinate created this gist
Jun 8, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ module Api module V1 class UsersController < ApplicationController def show @user = User.find_by(email: params[:email]) render json: @user end end end end