Skip to content

Instantly share code, notes, and snippets.

@scaffeinate
Last active June 8, 2016 10:48
Show Gist options
  • Save scaffeinate/4e28ca3e9d6d0c80b86b8e8e3f5a7ad1 to your computer and use it in GitHub Desktop.
Save scaffeinate/4e28ca3e9d6d0c80b86b8e8e3f5a7ad1 to your computer and use it in GitHub Desktop.

Revisions

  1. scaffeinate revised this gist Jun 8, 2016. 1 changed file with 5 additions and 7 deletions.
    12 changes: 5 additions & 7 deletions api_v1_users_controller.rb
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,8 @@
    module Api
    module V1
    class UsersController < ApplicationController
    def show
    @user = User.find_by(email: params[:email])
    render json: @user
    end
    module Api::V1
    class UsersController < ApplicationController
    def show
    @user = User.find_by(email: params[:email])
    render json: @user
    end
    end
    end
  2. scaffeinate created this gist Jun 8, 2016.
    10 changes: 10 additions & 0 deletions api_v1_users_controller.rb
    Original 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