-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added the second rake task, and fixed a couple views to support the
end of the draft
- Loading branch information
James Trowbridge
committed
May 6, 2010
1 parent
d038c6e
commit 65b4235
Showing
9 changed files
with
6,526 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<% @draft_results.each do |result| %> | ||
Round <%= result.round %> | ||
Pick <%= result.pick_number %> | ||
<li><%= result.player.name %> , <%= result.player.position %></li> | ||
<li><%= result.player.name %> , <%= result.player.position %></li><br> | ||
<% end %> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
desc "Simulate the draft order" | ||
task :simulate_draft => :environment do | ||
picks = Pick.find(:all) | ||
picks.sort_by {|pick| pick['pick_number']} | ||
picks.each do |pick| | ||
pick.team.kiper_draft | ||
end | ||
|
||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters