tournament 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +3 -0
- data/README.rdoc +6 -5
- data/lib/tournament.rb +1 -1
- data/webgui/app/controllers/teams_controller.rb +3 -2
- metadata +2 -2
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
tournament
|
2
2
|
by Douglas A. Seifert (doug+rubyforge at dseifert dot net)
|
3
3
|
http://www.dseifert.net/code/tournament
|
4
|
-
http://
|
4
|
+
http://github.org/seifertd/tournament
|
5
|
+
http://rubygems.org/gems/tournament
|
5
6
|
|
6
7
|
== DESCRIPTION:
|
7
8
|
|
@@ -307,13 +308,13 @@ from played to unknown outcome.
|
|
307
308
|
|
308
309
|
== REQUIREMENTS:
|
309
310
|
|
310
|
-
* main (2.
|
311
|
+
* main (4.2.0)
|
311
312
|
|
312
313
|
== WEB GUI REQUIREMENTS:
|
313
314
|
|
314
|
-
* rails (2.
|
315
|
-
* rake (0.8.
|
316
|
-
* sqlite3-ruby (1.2.
|
315
|
+
* rails (2.3.5)
|
316
|
+
* rake (0.8.7)
|
317
|
+
* sqlite3-ruby (1.2.5)
|
317
318
|
|
318
319
|
== SHOES GUI REQUIREMENTS:
|
319
320
|
|
data/lib/tournament.rb
CHANGED
@@ -10,14 +10,15 @@ class TeamsController < ApplicationController
|
|
10
10
|
region_hash = params[:region0] || params[:region1] || params[:region2] || params[:region3]
|
11
11
|
name_like = region_hash[:seedings][0][:name]
|
12
12
|
@teams_like = Team.find(:all, :conditions => ['name like ?', "#{name_like}%"], :order => 'name asc')
|
13
|
-
|
13
|
+
logger.debug("auto_complte_for_team_name got teams: #{@teams_like.inspect}")
|
14
|
+
render :inline => "<%= content_tag(:ul, @teams_like.map{|t| content_tag(:li, h(t.name), :short => t.short_name)}.join(' ')) %>"
|
14
15
|
end
|
15
16
|
|
16
17
|
def auto_complete_for_short_name
|
17
18
|
region_hash = params[:region0] || params[:region1] || params[:region2] || params[:region3]
|
18
19
|
name_like = region_hash[:seedings][0][:short_name]
|
19
20
|
@teams_like = Team.find(:all, :conditions => ['short_name like ?', "#{name_like}%"], :order => 'short_name asc')
|
20
|
-
render :inline => "<%= content_tag(:ul, @teams_like.map{|t| content_tag(:li, h(t.short_name), :name => t.name)}) %>"
|
21
|
+
render :inline => "<%= content_tag(:ul, @teams_like.map{|t| content_tag(:li, h(t.short_name), :name => t.name)}.join(' ')) %>"
|
21
22
|
end
|
22
23
|
|
23
24
|
def change
|