taiwan_city 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +29 -0
  4. data/app/assets/javascripts/taiwan_city/application.js.coffee +3 -0
  5. data/app/assets/javascripts/taiwan_city/jquery.taiwan_city.js.coffee +15 -0
  6. data/app/assets/stylesheets/taiwan_city/application.css +13 -0
  7. data/app/controllers/taiwan_city/application_controller.rb +4 -0
  8. data/app/controllers/taiwan_city/data_controller.rb +13 -0
  9. data/app/helpers/taiwan_city/application_helper.rb +4 -0
  10. data/app/views/layouts/taiwan_city/application.html.erb +12 -0
  11. data/app/views/taiwan_city/data/index.html.erb +21 -0
  12. data/config/routes.rb +4 -0
  13. data/db/areas.json +429 -0
  14. data/lib/taiwan_city/engine.rb +13 -0
  15. data/lib/taiwan_city/version.rb +3 -0
  16. data/lib/taiwan_city.rb +82 -0
  17. data/lib/tasks/taiwan_city_tasks.rake +4 -0
  18. data/spec/controllers/taiwan_city/data_controller_spec.rb +12 -0
  19. data/spec/dummy/README.rdoc +28 -0
  20. data/spec/dummy/Rakefile +6 -0
  21. data/spec/dummy/app/assets/javascripts/application.js +14 -0
  22. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  23. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  24. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  25. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  26. data/spec/dummy/bin/bundle +3 -0
  27. data/spec/dummy/bin/rails +4 -0
  28. data/spec/dummy/bin/rake +4 -0
  29. data/spec/dummy/config/application.rb +35 -0
  30. data/spec/dummy/config/boot.rb +5 -0
  31. data/spec/dummy/config/database.yml +25 -0
  32. data/spec/dummy/config/environment.rb +5 -0
  33. data/spec/dummy/config/environments/development.rb +29 -0
  34. data/spec/dummy/config/environments/production.rb +80 -0
  35. data/spec/dummy/config/environments/test.rb +36 -0
  36. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  38. data/spec/dummy/config/initializers/inflections.rb +16 -0
  39. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  40. data/spec/dummy/config/initializers/secret_token.rb +13 -0
  41. data/spec/dummy/config/initializers/session_store.rb +3 -0
  42. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/spec/dummy/config/locales/en.yml +23 -0
  44. data/spec/dummy/config/routes.rb +4 -0
  45. data/spec/dummy/config.ru +4 -0
  46. data/spec/dummy/log/development.log +484 -0
  47. data/spec/dummy/log/production.log +32 -0
  48. data/spec/dummy/log/test.log +3 -0
  49. data/spec/dummy/public/404.html +58 -0
  50. data/spec/dummy/public/422.html +58 -0
  51. data/spec/dummy/public/500.html +57 -0
  52. data/spec/dummy/public/favicon.ico +0 -0
  53. data/spec/dummy/script/rails +6 -0
  54. data/spec/dummy/tmp/cache/assets/CE6/E70/sprockets%2Fa6c63954e523c34f8376ec83c437c2d1 +0 -0
  55. data/spec/dummy/tmp/cache/assets/D0E/3D0/sprockets%2F8a0dc352946b98ecba565e3c074534b3 +21 -0
  56. data/spec/dummy/tmp/cache/assets/D0F/790/sprockets%2Fb19824f150c4f7f1162f3ac294f17ff3 +20 -0
  57. data/spec/dummy/tmp/cache/assets/D32/000/sprockets%2Fa5e6bd4b9b39e37ac37c0e00801a0577 +11 -0
  58. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  59. data/spec/dummy/tmp/cache/assets/D40/F70/sprockets%2F32ccef3c74c0d96753ec56716a0075df +0 -0
  60. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +21 -0
  61. data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +22 -0
  62. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  63. data/spec/features/taiwan_city_spec.rb +69 -0
  64. data/spec/lib/taiwan_city_spec.rb +30 -0
  65. data/spec/spec_helper.rb +29 -0
  66. metadata +268 -0
@@ -0,0 +1,484 @@
1
+
2
+
3
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 18:03:36 +0800
4
+ Processing by TaiwanCity::DataController#index as HTML
5
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (7.3ms)
6
+ Completed 500 Internal Server Error in 18ms
7
+
8
+ ActionView::Template::Error (399: unexpected token at '{"text": "南區 ,"id": "12702"},
9
+ {"text": "北區" ,"id": "12704"},
10
+ {"text": "安平區" ,"id": "12708"},
11
+ {"text": "安南區" ,"id": "12709"},
12
+ {"text": "永康區" ,"id": "12710"},
13
+ {"text": "歸仁區" ,"id": "12711"},
14
+ {"text": "新化區" ,"id": "12712"},
15
+ {"text": "左鎮區" ,"id": "12713"},
16
+ {"text": "玉井區" ,"id": "12714"},
17
+ {"text": "楠西區" ,"id": "12715"},
18
+ {"text": "南化區" ,"id": "12716"},
19
+ {"text": "仁德區" ,"id": "12717"},
20
+ {"text": "關廟區" ,"id": "12718"},
21
+ {"text": "龍崎區" ,"id": "12719"},
22
+ {"text": "官田區" ,"id": "12720"},
23
+ {"text": "麻豆區" ,"id": "12721"},
24
+ {"text": "佳里區" ,"id": "12722"},
25
+ {"text": "西港區" ,"id": "12723"},
26
+ {"text": "七股區" ,"id": "12724"},
27
+ {"text": "將軍區" ,"id": "12725"},
28
+ {"text": "學甲區" ,"id": "12726"},
29
+ {"text": "北門區" ,"id": "12727"},
30
+ {"text": "新營區" ,"id": "12730"},
31
+ {"text": "後壁區" ,"id": "12731"},
32
+ {"text": "白河區" ,"id": "12732"},
33
+ {"text": "東山區" ,"id": "12733"},
34
+ {"text": "六甲區" ,"id": "12734"},
35
+ {"text": "下營區" ,"id": "12735"},
36
+ {"text": "柳營區" ,"id": "12736"},
37
+ {"text": "鹽水區" ,"id": "12737"},
38
+ {"text": "善化區" ,"id": "12741"},
39
+ {"text": "新市區" ,"id": "12742"},
40
+ {"text": "大內區" ,"id": "12743"},
41
+ {"text": "山上區" ,"id": "12744"},
42
+ {"text": "安定區" ,"id": "12745"},
43
+
44
+ {"text": "新興區","id": "13800"},
45
+ {"text": "前金區","id": "13801"},
46
+ {"text": "苓雅區","id": "13802"},
47
+ {"text": "鹽埕區","id": "13803"},
48
+ {"text": "鼓山區","id": "13804"},
49
+ {"text": "旗津區","id": "13805"},
50
+ {"text": "前鎮區","id": "13806"},
51
+ {"text": "三民區","id": "13807"},
52
+ {"text": "楠梓區","id": "13811"},
53
+ {"text": "小港區","id": "13812"},
54
+ {"text": "左營區","id": "13813"},
55
+ {"text": "仁武區","id": "13814"},
56
+ {"text": "大社區","id": "13815"},
57
+ {"text": "岡山區","id": "13820"},
58
+ {"text": "路竹區","id": "13821"},
59
+ {"text": "阿蓮區","id": "13822"},
60
+ {"text": "田寮區","id": "13823"},
61
+ {"text": "燕巢區","id": "13824"},
62
+ {"text": "橋頭區","id": "13825"},
63
+ {"text": "梓官區","id": "13826"},
64
+ {"text": "彌陀區","id": "13827"},
65
+ {"text": "永安區","id": "13828"},
66
+ {"text": "湖內區","id": "13829"},
67
+ {"text": "鳳山區","id": "13830"},
68
+ {"text": "大寮區","id": "13831"},
69
+ {"text": "林園區","id": "13832"},
70
+ {"text": "鳥松區","id": "13833"},
71
+ {"text": "大樹區","id": "13840"},
72
+ {"text": "旗山區","id": "13842"},
73
+ {"text": "美濃區","id": "13843"},
74
+ {"text": "六龜區","id": "13844"},
75
+ {"text": "內門區","id": "13845"},
76
+ {"text": "杉林區","id": "13846"},
77
+ {"text": "甲仙區","id": "13847"},
78
+ {"text": "桃源區","id": "13848"},
79
+ {"text": "那瑪夏","id": "13849"},
80
+ {"text": "茂林區","id": "13851"},
81
+ {"text": "茄萣區","id": "13852"},
82
+
83
+ {"text": "屏東市","id": "14900"},
84
+ {"text": "三地門","id": "14901"},
85
+ {"text": "霧台鄉","id": "14902"},
86
+ {"text": "瑪家鄉","id": "14903"},
87
+ {"text": "九如鄉","id": "14904"},
88
+ {"text": "里港鄉","id": "14905"},
89
+ {"text": "高樹鄉","id": "14906"},
90
+ {"text": "鹽埔鄉","id": "14907"},
91
+ {"text": "長治鄉","id": "14908"},
92
+ {"text": "麟洛鄉","id": "14909"},
93
+ {"text": "竹田鄉","id": "14911"},
94
+ {"text": "內埔鄉","id": "14912"},
95
+ {"text": "萬丹鄉","id": "14913"},
96
+ {"text": "潮州鎮","id": "14920"},
97
+ {"text": "泰武鄉","id": "14921"},
98
+ {"text": "來義鄉","id": "14922"},
99
+ {"text": "萬巒鄉","id": "14923"},
100
+ {"text": "崁頂鄉","id": "14924"},
101
+ {"text": "新埤鄉","id": "14925"},
102
+ {"text": "南州鄉","id": "14926"},
103
+ {"text": "林邊鄉","id": "14927"},
104
+ {"text": "東港鎮","id": "14928"},
105
+ {"text": "琉球鄉","id": "14929"},
106
+ {"text": "佳冬鄉","id": "14931"},
107
+ {"text": "新園鄉","id": "14932"},
108
+ {"text": "枋寮鄉","id": "14940"},
109
+ {"text": "枋山鄉","id": "14941"},
110
+ {"text": "春日鄉","id": "14942"},
111
+ {"text": "獅子鄉","id": "14943"},
112
+ {"text": "車城鄉","id": "14944"},
113
+ {"text": "牡丹鄉","id": "14945"},
114
+ {"text": "恆春鎮","id": "14946"},
115
+ {"text": "滿州鄉","id": "14947"},
116
+
117
+ {"text": "宜蘭市","id": "15260"},
118
+ {"text": "頭城鎮","id": "15261"},
119
+ {"text": "礁溪鄉","id": "15262"},
120
+ {"text": "壯圍鄉","id": "15263"},
121
+ {"text": "員山鄉","id": "15264"},
122
+ {"text": "羅東鎮","id": "15265"},
123
+ {"text": "三星鄉","id": "15266"},
124
+ {"text": "大同鄉","id": "15267"},
125
+ {"text": "五結鄉","id": "15268"},
126
+ {"text": "冬山鄉","id": "15269"},
127
+ {"text": "蘇澳鎮","id": "15270"},
128
+ {"text": "南澳鄉","id": "15272"},
129
+
130
+ {"text": "花蓮市","id": "16970"},
131
+ {"text": "新城鄉","id": "16971"},
132
+ {"text": "秀林鄉","id": "16972"},
133
+ {"text": "吉安鄉","id": "16973"},
134
+ {"text": "壽豐鄉","id": "16974"},
135
+ {"text": "鳳林鎮","id": "16975"},
136
+ {"text": "光復鄉","id": "16976"},
137
+ {"text": "豐濱鄉","id": "16977"},
138
+ {"text": "瑞穗鄉","id": "16978"},
139
+ {"text": "萬榮鄉","id": "16979"},
140
+ {"text": "玉里鎮","id": "16981"},
141
+ {"text": "卓溪鄉","id": "16982"},
142
+ {"text": "富里鄉","id": "16983"},
143
+
144
+ {"text": "台東市","id": "17950"},
145
+ {"text": "綠島鄉","id": "17951"},
146
+ {"text": "蘭嶼鄉","id": "17952"},
147
+ {"text": "延平鄉","id": "17953"},
148
+ {"text": "卑南鄉","id": "17954"},
149
+ {"text": "鹿野鄉","id": "17955"},
150
+ {"text": "關山鎮","id": "17956"},
151
+ {"text": "海端鄉","id": "17957"},
152
+ {"text": "池上鄉","id": "17958"},
153
+ {"text": "東河鄉","id": "17959"},
154
+ {"text": "成功鎮","id": "17961"},
155
+ {"text": "長濱鄉","id": "17962"},
156
+ {"text": "太麻里","id": "17963"},
157
+ {"text": "金峰鄉","id": "17964"},
158
+ {"text": "大武鄉","id": "17965"},
159
+ {"text": "達仁鄉","id": "17966"},
160
+
161
+ {"text": "馬公市","id": "18880"},
162
+ {"text": "西嶼鄉","id": "18881"},
163
+ {"text": "望安鄉","id": "18882"},
164
+ {"text": "七美鄉","id": "18883"},
165
+ {"text": "白沙鄉","id": "18884"},
166
+ {"text": "湖西鄉","id": "18885"},
167
+
168
+ {"text": "金沙鎮","id": "19890"},
169
+ {"text": "金湖鎮","id": "19891"},
170
+ {"text": "金寧鄉","id": "19892"},
171
+ {"text": "金城鎮","id": "19893"},
172
+ {"text": "烈嶼鄉","id": "19894"},
173
+ {"text": "烏坵鄉","id": "19896"},
174
+
175
+ {"text": "南竿鄉","id": "20209"},
176
+ {"text": "北竿鄉","id": "20210"},
177
+ {"text": "莒光鄉","id": "20211"},
178
+ {"text": "東引鄉","id": "20212"},
179
+
180
+ {"text": "釣魚台","id": "21290"},
181
+ {"text": "東沙","id": "21817"},
182
+ {"text": "南沙","id": "21819"},
183
+ ]
184
+ }'):
185
+ 1: <%-
186
+ 2: city = '01000'
187
+ 3: district = '01100'
188
+ 4: cities = TaiwanCity.list
189
+ 5: districtes = TaiwanCity.list(city)
190
+ 6: %>
191
+ 7: <div class='rails-helper city-group'>
192
+
193
+
194
+ Rendered /Users/motephyr/.rvm/gems/ruby-2.1.1/gems/actionpack-3.1.12/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
195
+ Rendered /Users/motephyr/.rvm/gems/ruby-2.1.1/gems/actionpack-3.1.12/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
196
+ Rendered /Users/motephyr/.rvm/gems/ruby-2.1.1/gems/actionpack-3.1.12/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.9ms)
197
+
198
+
199
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 18:04:10 +0800
200
+ Processing by TaiwanCity::DataController#index as HTML
201
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (0.3ms)
202
+ Compiled taiwan_city/application.css (0ms) (pid 62312)
203
+ Compiled taiwan_city/application.js (187ms) (pid 62312)
204
+ Completed 200 OK in 204ms (Views: 204.0ms)
205
+
206
+
207
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 18:04:10 +0800
208
+ Served asset /taiwan_city/application.css - 200 OK (2ms)
209
+
210
+
211
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 18:04:10 +0800
212
+ Served asset /taiwan_city/application.js - 200 OK (1ms)
213
+
214
+
215
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 18:04:30 +0800
216
+ Processing by TaiwanCity::DataController#index as HTML
217
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (0.3ms)
218
+ Completed 200 OK in 5ms (Views: 4.4ms)
219
+
220
+
221
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 18:04:30 +0800
222
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
223
+
224
+
225
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 18:04:30 +0800
226
+ Served asset /taiwan_city/application.css - 304 Not Modified (0ms)
227
+
228
+
229
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 18:30:18 +0800
230
+ Processing by TaiwanCity::DataController#index as HTML
231
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (0.5ms)
232
+ Completed 200 OK in 4ms (Views: 4.3ms)
233
+
234
+
235
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 18:30:18 +0800
236
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
237
+
238
+
239
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 18:30:18 +0800
240
+ Served asset /taiwan_city/application.css - 304 Not Modified (0ms)
241
+
242
+
243
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 18:30:33 +0800
244
+ Processing by TaiwanCity::DataController#index as HTML
245
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (0.6ms)
246
+ Completed 200 OK in 5ms (Views: 4.6ms)
247
+
248
+
249
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 18:30:33 +0800
250
+ Served asset /taiwan_city/application.css - 304 Not Modified (0ms)
251
+
252
+
253
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 18:30:33 +0800
254
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
255
+
256
+
257
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 18:32:51 +0800
258
+ Processing by TaiwanCity::DataController#index as HTML
259
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (0.8ms)
260
+ Completed 200 OK in 5ms (Views: 4.8ms)
261
+
262
+
263
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 18:32:51 +0800
264
+ Served asset /taiwan_city/application.css - 304 Not Modified (0ms)
265
+
266
+
267
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 18:32:51 +0800
268
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
269
+
270
+
271
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 18:33:01 +0800
272
+ Processing by TaiwanCity::DataController#index as HTML
273
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (0.3ms)
274
+ Completed 200 OK in 4ms (Views: 3.9ms)
275
+
276
+
277
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 18:33:01 +0800
278
+ Served asset /taiwan_city/application.css - 304 Not Modified (0ms)
279
+
280
+
281
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 18:33:01 +0800
282
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
283
+
284
+
285
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 18:34:20 +0800
286
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
287
+
288
+
289
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 18:34:25 +0800
290
+ Served asset /taiwan_city/application.css - 304 Not Modified (0ms)
291
+
292
+
293
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:12:42 +0800
294
+ Processing by TaiwanCity::DataController#index as HTML
295
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (0.3ms)
296
+ Completed 200 OK in 6ms (Views: 5.6ms)
297
+
298
+
299
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 19:12:42 +0800
300
+ Served asset /taiwan_city/application.css - 304 Not Modified (0ms)
301
+
302
+
303
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 19:12:42 +0800
304
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
305
+
306
+
307
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 19:13:33 +0800
308
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
309
+
310
+
311
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 19:15:24 +0800
312
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
313
+
314
+
315
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:15:30 +0800
316
+ Processing by TaiwanCity::DataController#index as HTML
317
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (0.3ms)
318
+ Completed 200 OK in 5ms (Views: 4.5ms)
319
+
320
+
321
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 19:15:30 +0800
322
+ Served asset /taiwan_city/application.css - 304 Not Modified (0ms)
323
+
324
+
325
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 19:15:30 +0800
326
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
327
+
328
+
329
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 19:17:03 +0800
330
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
331
+
332
+
333
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:17:58 +0800
334
+ Processing by TaiwanCity::DataController#index as HTML
335
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (14.5ms)
336
+ Compiled taiwan_city/application.css (0ms) (pid 66665)
337
+ Compiled taiwan_city/application.js (110ms) (pid 66665)
338
+ Completed 200 OK in 146ms (Views: 145.8ms)
339
+
340
+
341
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:22:03 +0800
342
+ Processing by TaiwanCity::DataController#index as HTML
343
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (11.7ms)
344
+ Completed 200 OK in 16ms (Views: 16.3ms)
345
+
346
+
347
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:22:30 +0800
348
+ Processing by TaiwanCity::DataController#index as HTML
349
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (30.0ms)
350
+ Completed 200 OK in 34ms (Views: 34.1ms)
351
+
352
+
353
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:22:32 +0800
354
+ Processing by TaiwanCity::DataController#index as HTML
355
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (10.6ms)
356
+ Completed 200 OK in 15ms (Views: 14.5ms)
357
+
358
+
359
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:22:33 +0800
360
+ Processing by TaiwanCity::DataController#index as HTML
361
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (12.5ms)
362
+ Completed 200 OK in 17ms (Views: 16.4ms)
363
+
364
+
365
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:23:12 +0800
366
+ Processing by TaiwanCity::DataController#index as HTML
367
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (5.3ms)
368
+ Completed 500 Internal Server Error in 13ms
369
+
370
+ ActionView::Template::Error (undefined local variable or method `a' for TaiwanCity:Module):
371
+ 1: <%-
372
+ 2: city = '01000'
373
+ 3: district = '01100'
374
+ 4: cities = TaiwanCity.list
375
+ 5: districtes = TaiwanCity.list(city)
376
+ 6: %>
377
+ 7: <div class='rails-helper city-group'>
378
+
379
+
380
+ Rendered /Users/motephyr/.rvm/gems/ruby-2.1.1/gems/actionpack-3.1.12/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
381
+ Rendered /Users/motephyr/.rvm/gems/ruby-2.1.1/gems/actionpack-3.1.12/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
382
+ Rendered /Users/motephyr/.rvm/gems/ruby-2.1.1/gems/actionpack-3.1.12/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.5ms)
383
+
384
+
385
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:23:33 +0800
386
+ Processing by TaiwanCity::DataController#index as HTML
387
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (13.9ms)
388
+ Completed 200 OK in 28ms (Views: 28.1ms)
389
+
390
+
391
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:29:18 +0800
392
+ Processing by TaiwanCity::DataController#index as HTML
393
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (6.6ms)
394
+ Completed 500 Internal Server Error in 18ms
395
+
396
+ ActionView::Template::Error (undefined local variable or method `a' for TaiwanCity:Module):
397
+ 1: <%-
398
+ 2: city = '01000'
399
+ 3: district = '01100'
400
+ 4: cities = TaiwanCity.list
401
+ 5: districtes = TaiwanCity.list(city)
402
+ 6: %>
403
+ 7: <div class='rails-helper city-group'>
404
+
405
+
406
+ Rendered /Users/motephyr/.rvm/gems/ruby-2.1.1/gems/actionpack-3.1.12/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
407
+ Rendered /Users/motephyr/.rvm/gems/ruby-2.1.1/gems/actionpack-3.1.12/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
408
+ Rendered /Users/motephyr/.rvm/gems/ruby-2.1.1/gems/actionpack-3.1.12/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (4.3ms)
409
+
410
+
411
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:29:37 +0800
412
+ Processing by TaiwanCity::DataController#index as HTML
413
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (5.0ms)
414
+ Completed 200 OK in 22ms (Views: 21.5ms)
415
+
416
+
417
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:30:10 +0800
418
+ Processing by TaiwanCity::DataController#index as HTML
419
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (1.1ms)
420
+ Completed 200 OK in 5ms (Views: 4.5ms)
421
+
422
+
423
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:30:30 +0800
424
+ Processing by TaiwanCity::DataController#index as HTML
425
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (5.1ms)
426
+ Compiled taiwan_city/application.css (0ms) (pid 66972)
427
+ Compiled taiwan_city/application.js (109ms) (pid 66972)
428
+ Completed 200 OK in 131ms (Views: 131.1ms)
429
+
430
+
431
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:30:42 +0800
432
+ Processing by TaiwanCity::DataController#index as HTML
433
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (1.3ms)
434
+ Completed 200 OK in 6ms (Views: 5.7ms)
435
+
436
+
437
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:31:04 +0800
438
+ Processing by TaiwanCity::DataController#index as HTML
439
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (5.0ms)
440
+ Compiled taiwan_city/application.css (0ms) (pid 67008)
441
+ Compiled taiwan_city/application.js (111ms) (pid 67008)
442
+ Completed 200 OK in 133ms (Views: 132.3ms)
443
+
444
+
445
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:42:09 +0800
446
+ Processing by TaiwanCity::DataController#index as HTML
447
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (5.7ms)
448
+ Compiled taiwan_city/application.css (0ms) (pid 67496)
449
+ Compiled taiwan_city/application.js (112ms) (pid 67496)
450
+ Completed 200 OK in 139ms (Views: 138.9ms)
451
+
452
+
453
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:42:10 +0800
454
+ Processing by TaiwanCity::DataController#index as HTML
455
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (1.4ms)
456
+ Completed 200 OK in 6ms (Views: 5.6ms)
457
+
458
+
459
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 19:57:14 +0800
460
+ Processing by TaiwanCity::DataController#index as HTML
461
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (6.0ms)
462
+ Completed 200 OK in 38ms (Views: 37.8ms)
463
+
464
+
465
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 19:57:14 +0800
466
+ Served asset /taiwan_city/application.css - 304 Not Modified (0ms)
467
+
468
+
469
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 19:57:14 +0800
470
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
471
+
472
+
473
+ Started GET "/taiwan_city" for 127.0.0.1 at 2014-04-10 20:01:15 +0800
474
+ Processing by TaiwanCity::DataController#index as HTML
475
+ Rendered /Users/motephyr/Desktop/Ruby/taiwan_city/app/views/taiwan_city/data/index.html.erb within layouts/taiwan_city/application (8.2ms)
476
+ Completed 200 OK in 40ms (Views: 39.4ms)
477
+
478
+
479
+ Started GET "/assets/taiwan_city/application.css?body=1" for 127.0.0.1 at 2014-04-10 20:01:15 +0800
480
+ Served asset /taiwan_city/application.css - 304 Not Modified (0ms)
481
+
482
+
483
+ Started GET "/assets/taiwan_city/application.js?body=1" for 127.0.0.1 at 2014-04-10 20:01:15 +0800
484
+ Served asset /taiwan_city/application.js - 304 Not Modified (0ms)
@@ -0,0 +1,32 @@
1
+ Compiled application.js (0ms) (pid 66654)
2
+ Compiled application.css (0ms) (pid 66654)
3
+ Compiled taiwan_city/application.js (128ms) (pid 66654)
4
+ Compiled taiwan_city/application.css (0ms) (pid 66654)
5
+ Compiled application.js (0ms) (pid 66651)
6
+ Compiled application.css (0ms) (pid 66651)
7
+ Compiled taiwan_city/application.js (201ms) (pid 66651)
8
+ Compiled taiwan_city/application.css (0ms) (pid 66651)
9
+ Compiled application.js (0ms) (pid 66961)
10
+ Compiled application.css (0ms) (pid 66961)
11
+ Compiled taiwan_city/application.js (123ms) (pid 66961)
12
+ Compiled taiwan_city/application.css (0ms) (pid 66961)
13
+ Compiled application.js (0ms) (pid 66958)
14
+ Compiled application.css (0ms) (pid 66958)
15
+ Compiled taiwan_city/application.js (222ms) (pid 66958)
16
+ Compiled taiwan_city/application.css (0ms) (pid 66958)
17
+ Compiled application.js (0ms) (pid 66998)
18
+ Compiled application.css (0ms) (pid 66998)
19
+ Compiled taiwan_city/application.js (118ms) (pid 66998)
20
+ Compiled taiwan_city/application.css (0ms) (pid 66998)
21
+ Compiled application.js (0ms) (pid 66995)
22
+ Compiled application.css (0ms) (pid 66995)
23
+ Compiled taiwan_city/application.js (118ms) (pid 66995)
24
+ Compiled taiwan_city/application.css (0ms) (pid 66995)
25
+ Compiled application.js (0ms) (pid 67471)
26
+ Compiled application.css (0ms) (pid 67471)
27
+ Compiled taiwan_city/application.js (135ms) (pid 67471)
28
+ Compiled taiwan_city/application.css (0ms) (pid 67471)
29
+ Compiled application.js (0ms) (pid 67468)
30
+ Compiled application.css (0ms) (pid 67468)
31
+ Compiled taiwan_city/application.js (121ms) (pid 67468)
32
+ Compiled taiwan_city/application.css (0ms) (pid 67468)
@@ -0,0 +1,3 @@
1
+ Processing by TaiwanCity::DataController#show as HTML
2
+ Parameters: {"id"=>"00000"}
3
+ Completed 200 OK in 4ms (Views: 0.6ms)
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/404.html -->
52
+ <div class="dialog">
53
+ <h1>The page you were looking for doesn't exist.</h1>
54
+ <p>You may have mistyped the address or the page may have moved.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/422.html -->
52
+ <div class="dialog">
53
+ <h1>The change you wanted was rejected.</h1>
54
+ <p>Maybe you tried to change something you didn't have access to.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>