Skip to content

Commit

Permalink
updated nth_place view to include the place number
Browse files Browse the repository at this point in the history
  • Loading branch information
johndbritton committed Feb 16, 2011
1 parent 1460daf commit 7e16d79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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'}

0 comments on commit 7e16d79

Please sign in to comment.