From 7e16d7904a7ea6ad53dd569310bf368e81a93d9f Mon Sep 17 00:00:00 2001 From: John Britton Date: Wed, 16 Feb 2011 06:39:41 -0500 Subject: [PATCH] updated nth_place view to include the place number --- app.rb | 1 + views/nth_place.haml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app.rb b/app.rb index e43c225..b586a39 100644 --- a/app.rb +++ b/app.rb @@ -99,6 +99,7 @@ class Vote end get %r{/nth_place/(\d+)} do |n| + @n = n @competitor = Competitor.nth_place(n.to_i) haml :nth_place end diff --git a/views/nth_place.haml b/views/nth_place.haml index 6cabf6f..3a49248 100644 --- a/views/nth_place.haml +++ b/views/nth_place.haml @@ -1,3 +1,3 @@ #nth_place - %h1= @competitor.name + %h1= @n + " " + @competitor.name %img{:src => 'http://www.twilio.com/packages/company/img/logos_downloadable_powerdby_large.png', :alt => 'Powered by Twilio'} \ No newline at end of file