Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mikepmunroe/games_filter
base: 1c1b5da2fd
...
head fork: mikepmunroe/games_filter
compare: cd61fb15e8
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 5 additions and 7 deletions.
  1. +4 −4 app/models/athlete.rb
  2. +1 −3 app/views/athletes/index.html.erb
View
8 app/models/athlete.rb
@@ -42,10 +42,10 @@ def self.populate_scores
leaderboard = Nokogiri::HTML(open(leaderboard_src))
scores = leaderboard.xpath('//table/tbody/tr[@class="highlight"]/td/span[@class="display"]/text()').collect(&:text)
athlete.w1 = scores[0]
- athlete.w2 = scores[1]
- athlete.w3 = scores[2]
- athlete.w4 = scores[3]
- athlete.w5 = scores[4]
+ athlete.w2 = scores[2]
+ athlete.w3 = scores[4]
+ athlete.w4 = scores[6]
+ athlete.w5 = scores[8]
values = []
scores.each do |value|
if (match = value.scan(/\A\d*/))
View
4 app/views/athletes/index.html.erb
@@ -3,7 +3,6 @@
<thead>
<tr>
<th>Name</th>
- <th>URL</th>
<th>Affiliate</th>
<th>Age</th>
<th>13.1</th>
@@ -17,8 +16,7 @@
<tbody>
<% @athletes.each do |athlete| %>
<tr>
- <td><%= athlete.name %></td>
- <td><%= link_to athlete.url, "http://games.crossfit.com#{athlete.url}" %></td>
+ <td><%= link_to athlete.name, "http://games.crossfit.com#{athlete.url}" %></td>
<td><%= athlete.affiliate %></td>
<td><%= athlete.age %></td>
<td><%= athlete.w1 %></td>

No commit comments for this range

Something went wrong with that request. Please try again.