geopolitical 0.0.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +1 -1
- data/README.md +24 -0
- data/Rakefile +3 -20
- data/app/assets/javascripts/geopolitical/application.js +3 -5
- data/app/assets/stylesheets/geopolitical/application.css +1 -1
- data/app/controllers/geopolitical/cities_controller.rb +4 -3
- data/app/controllers/geopolitical/geopolitical_controller.rb +12 -3
- data/app/controllers/geopolitical/hoods_controller.rb +8 -2
- data/app/controllers/geopolitical/nations_controller.rb +16 -0
- data/app/controllers/geopolitical/{provinces_controller.rb → regions_controller.rb} +4 -3
- data/app/controllers/geopolitical/zones_controller.rb +12 -0
- data/app/controllers/zones_controller.rb +17 -0
- data/app/models/address.rb +65 -0
- data/app/models/city.rb +28 -29
- data/app/models/hood.rb +9 -11
- data/app/models/nation.rb +24 -0
- data/app/models/region.rb +23 -0
- data/app/models/zone.rb +25 -0
- data/app/models/zone_member.rb +9 -0
- data/app/views/geopolitical/cities/_form.html.haml +11 -10
- data/app/views/geopolitical/cities/index.html.haml +32 -30
- data/app/views/geopolitical/cities/show.html.haml +17 -26
- data/app/views/geopolitical/geopolitical/edit.html.haml +1 -0
- data/app/views/geopolitical/geopolitical/index.html.haml +19 -22
- data/app/views/geopolitical/geopolitical/new.html.haml +1 -0
- data/app/views/geopolitical/hoods/_city.html.haml +7 -0
- data/app/views/geopolitical/hoods/_form.html.haml +27 -0
- data/app/views/geopolitical/hoods/index.html.haml +33 -0
- data/app/views/geopolitical/hoods/show.html.haml +14 -0
- data/app/views/geopolitical/nations/_form.html.haml +26 -0
- data/app/views/geopolitical/nations/_nation.html.haml +0 -0
- data/app/views/geopolitical/nations/index.html.haml +34 -0
- data/app/views/geopolitical/nations/show.html.haml +20 -0
- data/app/views/geopolitical/regions/_form.html.haml +23 -0
- data/app/views/geopolitical/regions/_region.html.haml +7 -0
- data/app/views/geopolitical/regions/index.html.haml +31 -0
- data/app/views/geopolitical/regions/show.html.haml +17 -0
- data/app/views/geopolitical/zones/_form.html.haml +23 -0
- data/app/views/geopolitical/zones/_region.html.haml +7 -0
- data/app/views/geopolitical/zones/index.html.haml +31 -0
- data/app/views/geopolitical/zones/show.html.haml +21 -0
- data/app/views/layouts/geopolitical.html.haml +20 -0
- data/config/routes.rb +5 -4
- data/lib/geopolitical/engine.rb +2 -2
- data/lib/geopolitical/helpers.rb +23 -0
- data/lib/geopolitical/version.rb +1 -1
- data/lib/geopolitical.rb +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config/application.rb +27 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/mongoid.yml +13 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/log/test.log +2111 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/fabricators/city_fabricator.rb +6 -0
- data/spec/fabricators/hood_fabricator.rb +6 -0
- data/spec/fabricators/nation_fabricator.rb +4 -0
- data/spec/fabricators/region_fabricator.rb +5 -0
- data/spec/models/city_spec.rb +98 -0
- data/spec/models/hood_spec.rb +16 -0
- data/spec/models/nation_spec.rb +12 -0
- data/spec/models/region_spec.rb +12 -0
- data/spec/spec_helper.rb +54 -0
- metadata +198 -42
- data/README.rdoc +0 -3
- data/app/controllers/geopolitical/countries_controller.rb +0 -10
- data/app/models/country.rb +0 -20
- data/app/models/province.rb +0 -17
- data/app/views/geopolitical/cities/edit.html.haml +0 -1
- data/app/views/geopolitical/cities/new.html.haml +0 -1
- data/app/views/geopolitical/countries/_country.html.haml +0 -11
- data/app/views/geopolitical/countries/edit.html.haml +0 -7
- data/app/views/geopolitical/countries/index.html.haml +0 -28
- data/app/views/geopolitical/countries/new.html.haml +0 -5
- data/app/views/geopolitical/countries/show.html.haml +0 -10
- data/app/views/geopolitical/provinces/_province.html.haml +0 -7
- data/app/views/geopolitical/provinces/edit.html.haml +0 -7
- data/app/views/geopolitical/provinces/index.html.haml +0 -18
- data/app/views/geopolitical/provinces/new.html.haml +0 -5
- data/app/views/geopolitical/provinces/show.html.haml +0 -13
metadata
CHANGED
@@ -1,62 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geopolitical
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.8.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Marcos Piccinini
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-09-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
19
|
+
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
26
|
+
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: mongoid
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: mongoid_geospatial
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: inherited_resources
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
52
60
|
- !ruby/object:Gem::Version
|
53
61
|
version: '0'
|
54
62
|
type: :runtime
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- -
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: faker
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: fabrication
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
60
123
|
- !ruby/object:Gem::Version
|
61
124
|
version: '0'
|
62
125
|
description: Geopolitical models for mongoid as a rails engine.
|
@@ -66,66 +129,159 @@ executables: []
|
|
66
129
|
extensions: []
|
67
130
|
extra_rdoc_files: []
|
68
131
|
files:
|
132
|
+
- app/views/geopolitical/regions/show.html.haml
|
133
|
+
- app/views/geopolitical/regions/index.html.haml
|
134
|
+
- app/views/geopolitical/regions/_form.html.haml
|
135
|
+
- app/views/geopolitical/regions/_region.html.haml
|
136
|
+
- app/views/geopolitical/geopolitical/new.html.haml
|
69
137
|
- app/views/geopolitical/geopolitical/index.html.haml
|
70
|
-
- app/views/geopolitical/
|
71
|
-
- app/views/geopolitical/
|
72
|
-
- app/views/geopolitical/
|
73
|
-
- app/views/geopolitical/
|
74
|
-
- app/views/geopolitical/
|
138
|
+
- app/views/geopolitical/geopolitical/edit.html.haml
|
139
|
+
- app/views/geopolitical/zones/show.html.haml
|
140
|
+
- app/views/geopolitical/zones/index.html.haml
|
141
|
+
- app/views/geopolitical/zones/_form.html.haml
|
142
|
+
- app/views/geopolitical/zones/_region.html.haml
|
143
|
+
- app/views/geopolitical/hoods/show.html.haml
|
144
|
+
- app/views/geopolitical/hoods/index.html.haml
|
145
|
+
- app/views/geopolitical/hoods/_city.html.haml
|
146
|
+
- app/views/geopolitical/hoods/_form.html.haml
|
75
147
|
- app/views/geopolitical/cities/show.html.haml
|
76
|
-
- app/views/geopolitical/cities/new.html.haml
|
77
148
|
- app/views/geopolitical/cities/index.html.haml
|
78
149
|
- app/views/geopolitical/cities/_city.html.haml
|
79
150
|
- app/views/geopolitical/cities/_form.html.haml
|
80
|
-
- app/views/geopolitical/
|
81
|
-
- app/views/geopolitical/
|
82
|
-
- app/views/geopolitical/
|
83
|
-
- app/views/geopolitical/
|
84
|
-
- app/views/geopolitical
|
85
|
-
- app/views/geopolitical/countries/_country.html.haml
|
151
|
+
- app/views/geopolitical/nations/show.html.haml
|
152
|
+
- app/views/geopolitical/nations/index.html.haml
|
153
|
+
- app/views/geopolitical/nations/_form.html.haml
|
154
|
+
- app/views/geopolitical/nations/_nation.html.haml
|
155
|
+
- app/views/layouts/geopolitical.html.haml
|
86
156
|
- app/helpers/geopolitical/application_helper.rb
|
157
|
+
- app/controllers/geopolitical/regions_controller.rb
|
87
158
|
- app/controllers/geopolitical/geopolitical_controller.rb
|
88
159
|
- app/controllers/geopolitical/hoods_controller.rb
|
89
|
-
- app/controllers/geopolitical/
|
160
|
+
- app/controllers/geopolitical/nations_controller.rb
|
161
|
+
- app/controllers/geopolitical/zones_controller.rb
|
90
162
|
- app/controllers/geopolitical/cities_controller.rb
|
91
|
-
- app/controllers/
|
163
|
+
- app/controllers/zones_controller.rb
|
164
|
+
- app/models/zone_member.rb
|
92
165
|
- app/models/city.rb
|
166
|
+
- app/models/address.rb
|
167
|
+
- app/models/zone.rb
|
93
168
|
- app/models/hood.rb
|
94
|
-
- app/models/
|
95
|
-
- app/models/
|
169
|
+
- app/models/nation.rb
|
170
|
+
- app/models/region.rb
|
96
171
|
- app/assets/javascripts/geopolitical/application.js
|
97
172
|
- app/assets/stylesheets/geopolitical/application.css
|
98
173
|
- config/routes.rb
|
99
174
|
- lib/geopolitical/engine.rb
|
100
175
|
- lib/geopolitical/version.rb
|
176
|
+
- lib/geopolitical/helpers.rb
|
101
177
|
- lib/tasks/geopolitical_tasks.rake
|
102
178
|
- lib/geopolitical.rb
|
103
179
|
- MIT-LICENSE
|
104
180
|
- Rakefile
|
105
|
-
- README.
|
181
|
+
- README.md
|
182
|
+
- spec/models/region_spec.rb
|
183
|
+
- spec/models/nation_spec.rb
|
184
|
+
- spec/models/hood_spec.rb
|
185
|
+
- spec/models/city_spec.rb
|
186
|
+
- spec/spec_helper.rb
|
187
|
+
- spec/fabricators/city_fabricator.rb
|
188
|
+
- spec/fabricators/hood_fabricator.rb
|
189
|
+
- spec/fabricators/nation_fabricator.rb
|
190
|
+
- spec/fabricators/region_fabricator.rb
|
191
|
+
- spec/dummy/public/500.html
|
192
|
+
- spec/dummy/public/404.html
|
193
|
+
- spec/dummy/public/favicon.ico
|
194
|
+
- spec/dummy/public/422.html
|
195
|
+
- spec/dummy/Rakefile
|
196
|
+
- spec/dummy/README.rdoc
|
197
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
198
|
+
- spec/dummy/app/helpers/application_helper.rb
|
199
|
+
- spec/dummy/app/controllers/application_controller.rb
|
200
|
+
- spec/dummy/app/assets/javascripts/application.js
|
201
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
202
|
+
- spec/dummy/config/routes.rb
|
203
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
204
|
+
- spec/dummy/config/initializers/session_store.rb
|
205
|
+
- spec/dummy/config/initializers/secret_token.rb
|
206
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
207
|
+
- spec/dummy/config/initializers/inflections.rb
|
208
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
209
|
+
- spec/dummy/config/initializers/mime_types.rb
|
210
|
+
- spec/dummy/config/locales/en.yml
|
211
|
+
- spec/dummy/config/boot.rb
|
212
|
+
- spec/dummy/config/mongoid.yml
|
213
|
+
- spec/dummy/config/environments/test.rb
|
214
|
+
- spec/dummy/config/environments/development.rb
|
215
|
+
- spec/dummy/config/environments/production.rb
|
216
|
+
- spec/dummy/config/application.rb
|
217
|
+
- spec/dummy/config/environment.rb
|
218
|
+
- spec/dummy/config.ru
|
219
|
+
- spec/dummy/bin/bundle
|
220
|
+
- spec/dummy/bin/rake
|
221
|
+
- spec/dummy/bin/rails
|
222
|
+
- spec/dummy/log/test.log
|
106
223
|
homepage: http://github.com/nofxx/geopolitical
|
107
224
|
licenses: []
|
225
|
+
metadata: {}
|
108
226
|
post_install_message:
|
109
227
|
rdoc_options: []
|
110
228
|
require_paths:
|
111
229
|
- lib
|
112
230
|
required_ruby_version: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
231
|
requirements:
|
115
|
-
- -
|
232
|
+
- - '>='
|
116
233
|
- !ruby/object:Gem::Version
|
117
234
|
version: '0'
|
118
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
|
-
none: false
|
120
236
|
requirements:
|
121
|
-
- -
|
237
|
+
- - '>='
|
122
238
|
- !ruby/object:Gem::Version
|
123
239
|
version: '0'
|
124
240
|
requirements: []
|
125
241
|
rubyforge_project:
|
126
|
-
rubygems_version:
|
242
|
+
rubygems_version: 2.0.7
|
127
243
|
signing_key:
|
128
|
-
specification_version:
|
244
|
+
specification_version: 4
|
129
245
|
summary: Geopolitical models for mongoid.
|
130
|
-
test_files:
|
131
|
-
|
246
|
+
test_files:
|
247
|
+
- spec/models/region_spec.rb
|
248
|
+
- spec/models/nation_spec.rb
|
249
|
+
- spec/models/hood_spec.rb
|
250
|
+
- spec/models/city_spec.rb
|
251
|
+
- spec/spec_helper.rb
|
252
|
+
- spec/fabricators/city_fabricator.rb
|
253
|
+
- spec/fabricators/hood_fabricator.rb
|
254
|
+
- spec/fabricators/nation_fabricator.rb
|
255
|
+
- spec/fabricators/region_fabricator.rb
|
256
|
+
- spec/dummy/public/500.html
|
257
|
+
- spec/dummy/public/404.html
|
258
|
+
- spec/dummy/public/favicon.ico
|
259
|
+
- spec/dummy/public/422.html
|
260
|
+
- spec/dummy/Rakefile
|
261
|
+
- spec/dummy/README.rdoc
|
262
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
263
|
+
- spec/dummy/app/helpers/application_helper.rb
|
264
|
+
- spec/dummy/app/controllers/application_controller.rb
|
265
|
+
- spec/dummy/app/assets/javascripts/application.js
|
266
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
267
|
+
- spec/dummy/config/routes.rb
|
268
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
269
|
+
- spec/dummy/config/initializers/session_store.rb
|
270
|
+
- spec/dummy/config/initializers/secret_token.rb
|
271
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
272
|
+
- spec/dummy/config/initializers/inflections.rb
|
273
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
274
|
+
- spec/dummy/config/initializers/mime_types.rb
|
275
|
+
- spec/dummy/config/locales/en.yml
|
276
|
+
- spec/dummy/config/boot.rb
|
277
|
+
- spec/dummy/config/mongoid.yml
|
278
|
+
- spec/dummy/config/environments/test.rb
|
279
|
+
- spec/dummy/config/environments/development.rb
|
280
|
+
- spec/dummy/config/environments/production.rb
|
281
|
+
- spec/dummy/config/application.rb
|
282
|
+
- spec/dummy/config/environment.rb
|
283
|
+
- spec/dummy/config.ru
|
284
|
+
- spec/dummy/bin/bundle
|
285
|
+
- spec/dummy/bin/rake
|
286
|
+
- spec/dummy/bin/rails
|
287
|
+
- spec/dummy/log/test.log
|
data/README.rdoc
DELETED
data/app/models/country.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
class Country
|
2
|
-
include Mongoid::Document
|
3
|
-
|
4
|
-
field :gid, type: Integer # geonames id
|
5
|
-
field :name, type: String
|
6
|
-
field :abbr, type: String
|
7
|
-
field :code # optional phone/whatever code
|
8
|
-
|
9
|
-
has_many :cities
|
10
|
-
has_many :provinces
|
11
|
-
|
12
|
-
validates :abbr, :name, presence: true
|
13
|
-
|
14
|
-
index [[:name, 1]]
|
15
|
-
|
16
|
-
scope :ordered, order_by(:name, 1)
|
17
|
-
|
18
|
-
end
|
19
|
-
|
20
|
-
|
data/app/models/province.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
class Province
|
2
|
-
include Mongoid::Document
|
3
|
-
|
4
|
-
field :gid, type: Integer # geonames id
|
5
|
-
field :name, type: String
|
6
|
-
field :abbr, type: String
|
7
|
-
|
8
|
-
belongs_to :country
|
9
|
-
has_many :cities
|
10
|
-
|
11
|
-
validates :name, presence: true
|
12
|
-
|
13
|
-
index [[:name, 1]]
|
14
|
-
|
15
|
-
scope :ordered, order_by(:name, 1)
|
16
|
-
|
17
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
= render "form"
|
@@ -1 +0,0 @@
|
|
1
|
-
= render "form"
|
@@ -1,28 +0,0 @@
|
|
1
|
-
.row
|
2
|
-
%h3.title Countries
|
3
|
-
=# render "shared/filter"
|
4
|
-
.right.links
|
5
|
-
= link_to "New Country", new_country_path, :class => "blue nice small button radius"
|
6
|
-
.block
|
7
|
-
.content
|
8
|
-
.inner
|
9
|
-
%table.table
|
10
|
-
%thead
|
11
|
-
%tr
|
12
|
-
%th Abbr
|
13
|
-
%th Nome
|
14
|
-
%th
|
15
|
-
%tbody
|
16
|
-
- for country in @countries
|
17
|
-
%tr
|
18
|
-
%td
|
19
|
-
=# image_tag country.flag.nano if country.flag?
|
20
|
-
= country.abbr
|
21
|
-
%td= link_to country.name, country
|
22
|
-
%td.last
|
23
|
-
=# link_to "Destroy!", country_path(country), :method => :delete
|
24
|
-
= link_to "Edit!", edit_country_path(country)
|
25
|
-
.pagination
|
26
|
-
.clear
|
27
|
-
|
28
|
-
= paginate @countries
|
@@ -1,18 +0,0 @@
|
|
1
|
-
%table{:class => :table}
|
2
|
-
%thead
|
3
|
-
%tr
|
4
|
-
%th Nome
|
5
|
-
%th Sigla
|
6
|
-
%th{:colspan => 2} Pais
|
7
|
-
%tbody
|
8
|
-
- for province in @provinces
|
9
|
-
%tr{:class => cycle('par','impar')}
|
10
|
-
%td=h province.name
|
11
|
-
%td=h province.abbr
|
12
|
-
%td=h province.country.name
|
13
|
-
%td{:align => 'right'}
|
14
|
-
= link_to image_tag('icons/edit.png', :title => 'Editar', :border => 0), edit_province_path(province)
|
15
|
-
|
16
|
-
//%td= link_to 'Destroy', province, :confirm => 'Are you sure?', :method => :delete
|
17
|
-
|
18
|
-
|