country_select 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/country_select.rb +2 -2
- data/lib/country_select/version.rb +1 -1
- metadata +3 -4
data/lib/country_select.rb
CHANGED
@@ -14,11 +14,11 @@ module ActionView
|
|
14
14
|
#
|
15
15
|
# NOTE: Only the option tags are returned, you have to wrap this call in a regular HTML select tag.
|
16
16
|
def country_options_for_select(selected = nil, priority_countries = nil)
|
17
|
-
country_options = ""
|
17
|
+
country_options = "".html_safe
|
18
18
|
|
19
19
|
if priority_countries
|
20
20
|
country_options += options_for_select(priority_countries, selected)
|
21
|
-
country_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n"
|
21
|
+
country_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n".html_safe
|
22
22
|
# prevents selected from being included twice in the HTML which causes
|
23
23
|
# some browsers to select the second selected option (not priority)
|
24
24
|
# which makes it harder to select an alternative priority country
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: country_select
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Provides a simple helper to get an HTML select list of countries. The
|
15
15
|
list of countries comes from the ISO 3166 standard. While it is a relatively neutral
|
@@ -48,9 +48,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
50
|
rubyforge_project: country_select
|
51
|
-
rubygems_version: 1.8.
|
51
|
+
rubygems_version: 1.8.10
|
52
52
|
signing_key:
|
53
53
|
specification_version: 3
|
54
54
|
summary: Country Select Plugin
|
55
55
|
test_files: []
|
56
|
-
has_rdoc:
|