Skip to content

Commit

Permalink
#48 username -> id
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangJoo-Park committed Apr 25, 2018
1 parent b58c9e5 commit 93d8d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class UsersController < ApplicationController
def show
puts "SHOW"
@user = User.find_by username: params['username']
@user = User.find_by username: params["id"]
puts @user
end
end

0 comments on commit 93d8d89

Please sign in to comment.