From 6069583960bb89b0381862edd97ab011373fad79 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 28 Apr 2015 10:35:42 -0400 Subject: [PATCH] More bossfight --- app.rb | 2 +- views/bossfight.erb | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app.rb b/app.rb index bc05664..16c55d0 100644 --- a/app.rb +++ b/app.rb @@ -35,7 +35,7 @@ get '/bossfight/?:username' do @username = params['username'] ? params['username'] : 'mafiaman' user_raids = Raid.for_user(@username) @first_negative = user_raids.first_negative - @soldiers_lost_to_date = user_raids.soldiers_lost_to_date(@first_negative.created_at) + @soldiers_killed = user_raids.soldiers_lost_to_date(@first_negative.created_at) @contributers = user_raids.contributors(@first_negative.created_at) erb :bossfight diff --git a/views/bossfight.erb b/views/bossfight.erb index 51e3930..235f679 100644 --- a/views/bossfight.erb +++ b/views/bossfight.erb @@ -1,17 +1,20 @@ -

Bossfight: <%= @username %>

-