specify username

This commit is contained in:
Andrew Tomaka 2015-04-28 10:15:17 -04:00
parent 6f822f5706
commit 1683f24c55

5
app.rb
View file

@ -31,8 +31,9 @@ post '/' do
end end
end end
get '/bossfight' do get '/bossfight/:username' do
user_raids = Raid.for_user('mafiaman') username = params['username'] ? params['username'] : 'mafiaman'
user_raids = Raid.for_user(username)
@first_negative = user_raids.first_negative @first_negative = user_raids.first_negative
erb :bossfight erb :bossfight