Skip to content

Commit ae6c4b2

Browse files
committed
fixing small bug with looking up users by their slug.
1 parent 4f323e1 commit ae6c4b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

controllers/hackers_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#This is the 'hackers' controller. "Hackers" are what we call "Users" in HH.
22

33
# We want to give our Hackers a profile page.
4-
get '/hackers/:slug' do
5-
@hacker = Hacker.first(:slug => params[:slug])
4+
get '/hackers/:username' do
5+
@hacker = Hacker.first(:slug => params[:username].to_slug)
66

77
haml :"hackers/show"
88
end

0 commit comments

Comments
 (0)