belongs_to_city 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +5 -0
- data/VERSION +1 -1
- data/belongs_to_city.gemspec +1 -1
- data/generators/belongs_to_city/belongs_to_city_generator.rb +1 -4
- data/generators/belongs_to_city/templates/cities.csv +4 -1
- data/generators/belongs_to_city/templates/countries.csv +2 -1
- data/generators/belongs_to_city/templates/states.csv +4 -1
- metadata +2 -2
data/README.textile
CHANGED
@@ -49,12 +49,17 @@ p. *--include-seed* will create a rake task to seed your City based database usi
|
|
49
49
|
|*country_id*|*name*|*abbr*|*short*|*short2*|
|
50
50
|
|1|Nuevo Leon|N.L.|NL|NLE|
|
51
51
|
|1|Jalisco|Jal.|JA|JAL|
|
52
|
+
|2|Texal|TX|||
|
53
|
+
|2|Florida|FL|||
|
52
54
|
|
53
55
|
*cities.csv*
|
54
56
|
|
55
57
|
|*state_id*|*name*|*city_name*|
|
56
58
|
|1|Monterey|Monterrey|
|
57
59
|
|2|Guadalajara|Guadalajara|
|
60
|
+
|3|Houston||
|
61
|
+
|4|Miami||
|
62
|
+
|
58
63
|
|
59
64
|
p. All that matters is that the header is present in the csv files, the order can change if you wish.
|
60
65
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
data/belongs_to_city.gemspec
CHANGED
@@ -21,7 +21,7 @@ class BelongsToCityGenerator < Rails::Generator::Base
|
|
21
21
|
end
|
22
22
|
if @args.empty? or @args.include?('controller')
|
23
23
|
m.template "controllers/cities_controller.rb", "app/controllers/cities_controller.rb"
|
24
|
-
m.
|
24
|
+
m.route_resources(:cities)
|
25
25
|
end
|
26
26
|
|
27
27
|
if options[:jq_autocomplete]
|
@@ -36,9 +36,6 @@ class BelongsToCityGenerator < Rails::Generator::Base
|
|
36
36
|
m.file "cities.csv", "db/csv/cities.csv"
|
37
37
|
m.file 'belongs_to_city_tasks.rake', 'lib/tasks/belongs_to_city_tasks.rake'
|
38
38
|
end
|
39
|
-
|
40
|
-
include_in_environment
|
41
|
-
|
42
39
|
end
|
43
40
|
end
|
44
41
|
|