china_city 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +28 -0
  4. data/app/assets/javascripts/china_city/application.js.coffee +2 -0
  5. data/app/assets/javascripts/china_city/jquery.china_city.js.coffee +17 -0
  6. data/app/assets/stylesheets/china_city/application.css +13 -0
  7. data/app/controllers/china_city/application_controller.rb +4 -0
  8. data/app/controllers/china_city/data_controller.rb +13 -0
  9. data/app/helpers/china_city/application_helper.rb +4 -0
  10. data/app/views/china_city/data/index.html.erb +28 -0
  11. data/app/views/layouts/china_city/application.html.erb +12 -0
  12. data/config/routes.rb +4 -0
  13. data/db/areas.json +6 -0
  14. data/lib/china_city/engine.rb +13 -0
  15. data/lib/china_city/version.rb +3 -0
  16. data/lib/china_city.rb +99 -0
  17. data/lib/tasks/china_city_tasks.rake +4 -0
  18. data/spec/controllers/china_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 +28 -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 +12 -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 +5921 -0
  47. data/spec/dummy/log/test.log +252 -0
  48. data/spec/dummy/public/404.html +58 -0
  49. data/spec/dummy/public/422.html +58 -0
  50. data/spec/dummy/public/500.html +57 -0
  51. data/spec/dummy/public/favicon.ico +0 -0
  52. data/spec/dummy/tmp/cache/assets/development/sprockets/35f568d6b4c5b9431aeca08ebe1b2dea +0 -0
  53. data/spec/dummy/tmp/cache/assets/development/sprockets/37921dfa12e3d26acd1391b11883b3f6 +0 -0
  54. data/spec/dummy/tmp/cache/assets/development/sprockets/3b490ad633b60008f79d7d5c6bacb53d +0 -0
  55. data/spec/dummy/tmp/cache/assets/development/sprockets/4de331a6a64d5ace50f9234a9a64c617 +0 -0
  56. data/spec/dummy/tmp/cache/assets/development/sprockets/4fc372504d8cd84be102f1e63e2b16f8 +0 -0
  57. data/spec/dummy/tmp/cache/assets/development/sprockets/5ccf082c0c1984395e30b2a6059ee972 +0 -0
  58. data/spec/dummy/tmp/cache/assets/development/sprockets/6b50e161ae0a55621ba1dfc58a60e90c +0 -0
  59. data/spec/dummy/tmp/cache/assets/development/sprockets/78abd667345b2147eba18800e12e6d17 +0 -0
  60. data/spec/dummy/tmp/cache/assets/development/sprockets/887e2ba7efa792fda790a48911a596b2 +0 -0
  61. data/spec/dummy/tmp/cache/assets/development/sprockets/b2f5722a25ec12218a20c130bac9c929 +0 -0
  62. data/spec/dummy/tmp/cache/assets/development/sprockets/ccc63975f47542b9573178e46d3a43a4 +0 -0
  63. data/spec/dummy/tmp/cache/assets/development/sprockets/d7a58a396bcfc9ebb9ea3f8fe69d07a8 +0 -0
  64. data/spec/dummy/tmp/cache/assets/test/sprockets/35f568d6b4c5b9431aeca08ebe1b2dea +0 -0
  65. data/spec/dummy/tmp/cache/assets/test/sprockets/3b490ad633b60008f79d7d5c6bacb53d +0 -0
  66. data/spec/dummy/tmp/cache/assets/test/sprockets/4de331a6a64d5ace50f9234a9a64c617 +0 -0
  67. data/spec/dummy/tmp/cache/assets/test/sprockets/4fc372504d8cd84be102f1e63e2b16f8 +0 -0
  68. data/spec/dummy/tmp/cache/assets/test/sprockets/5ccf082c0c1984395e30b2a6059ee972 +0 -0
  69. data/spec/dummy/tmp/cache/assets/test/sprockets/6b50e161ae0a55621ba1dfc58a60e90c +0 -0
  70. data/spec/dummy/tmp/cache/assets/test/sprockets/78abd667345b2147eba18800e12e6d17 +0 -0
  71. data/spec/dummy/tmp/cache/assets/test/sprockets/887e2ba7efa792fda790a48911a596b2 +0 -0
  72. data/spec/dummy/tmp/cache/assets/test/sprockets/b2f5722a25ec12218a20c130bac9c929 +0 -0
  73. data/spec/dummy/tmp/cache/assets/test/sprockets/d7a58a396bcfc9ebb9ea3f8fe69d07a8 +0 -0
  74. data/spec/dummy/tmp/capybara/capybara-201308122053431011460252.html +1 -0
  75. data/spec/dummy/tmp/capybara/capybara-20130812205400956024760.html +15 -0
  76. data/spec/dummy/tmp/capybara/capybara-201308122055089727609001.html +1 -0
  77. data/spec/dummy/tmp/capybara/capybara-201308122056446100423016.html +15 -0
  78. data/spec/dummy/tmp/capybara/capybara-201308122057069527721661.html +15 -0
  79. data/spec/dummy/tmp/capybara/capybara-201308122102518595840184.html +15 -0
  80. data/spec/dummy/tmp/capybara/capybara-201308122105199923136662.html +2 -0
  81. data/spec/dummy/tmp/capybara/capybara-201308122105296054565456.html +2 -0
  82. data/spec/dummy/tmp/capybara/capybara-201308122109098287796815.html +133 -0
  83. data/spec/dummy/tmp/capybara/capybara-201308122110349829348457.html +133 -0
  84. data/spec/dummy/tmp/capybara/capybara-201308122138487518932375.html +133 -0
  85. data/spec/dummy/tmp/capybara/capybara-201308122236338878485935.html +143 -0
  86. data/spec/dummy/tmp/capybara/capybara-201308122237183217273230.html +143 -0
  87. data/spec/features/china_city_spec.rb +35 -0
  88. data/spec/lib/china_city_spec.rb +33 -0
  89. data/spec/spec_helper.rb +26 -0
  90. metadata +329 -0
@@ -0,0 +1,252 @@
1
+ Processing by ChinaCity::DataController#show as HTML
2
+ Parameters: {"id"=>"000000"}
3
+ Completed 200 OK in 55ms (Views: 1.1ms)
4
+ Processing by ChinaCity::DataController#show as HTML
5
+ Parameters: {"id"=>"000000"}
6
+ Completed 200 OK in 56ms (Views: 1.1ms)
7
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:27:34 +0800
8
+ Processing by ChinaCity::DataController#index as HTML
9
+ Completed 500 Internal Server Error in 8ms
10
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:28:04 +0800
11
+ Processing by ChinaCity::DataController#index as HTML
12
+ Completed 500 Internal Server Error in 6ms
13
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:32:55 +0800
14
+ Processing by ChinaCity::DataController#index as HTML
15
+ Completed 500 Internal Server Error in 8ms
16
+ Started GET "/china_city/" for 127.0.0.1 at 2013-08-12 20:42:16 +0800
17
+ Processing by ChinaCity::DataController#index as HTML
18
+ Completed 500 Internal Server Error in 8ms
19
+ Started GET "/china_city/index" for 127.0.0.1 at 2013-08-12 20:43:58 +0800
20
+ Processing by ChinaCity::DataController#show as HTML
21
+ Parameters: {"id"=>"index"}
22
+ Completed 500 Internal Server Error in 1ms
23
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:44:23 +0800
24
+ Processing by ChinaCity::DataController#index as HTML
25
+ Completed 500 Internal Server Error in 6ms
26
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:50:00 +0800
27
+ Processing by ChinaCity::DataController#index as HTML
28
+ Completed 500 Internal Server Error in 11ms
29
+ Started GET "/china_city/000000" for 127.0.0.1 at 2013-08-12 20:50:23 +0800
30
+ Processing by ChinaCity::DataController#show as HTML
31
+ Parameters: {"id"=>"000000"}
32
+ Completed 200 OK in 75ms (Views: 0.7ms)
33
+ Started GET "/china_city/000000" for 127.0.0.1 at 2013-08-12 20:50:48 +0800
34
+ Processing by ChinaCity::DataController#show as HTML
35
+ Parameters: {"id"=>"000000"}
36
+ Completed 200 OK in 70ms (Views: 0.7ms)
37
+ Started GET "/china_city/000000" for 127.0.0.1 at 2013-08-12 20:53:42 +0800
38
+ Processing by ChinaCity::DataController#show as HTML
39
+ Parameters: {"id"=>"000000"}
40
+ Completed 200 OK in 69ms (Views: 0.7ms)
41
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:54:00 +0800
42
+ Processing by ChinaCity::DataController#index as HTML
43
+ Completed 500 Internal Server Error in 13ms
44
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:55:08 +0800
45
+ Processing by ChinaCity::DataController#index as HTML
46
+ Rendered text template (0.1ms)
47
+ Completed 200 OK in 6ms (Views: 5.6ms)
48
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:56:19 +0800
49
+ Processing by ChinaCity::DataController#index as HTML
50
+ Rendered text template (0.0ms)
51
+ Completed 200 OK in 7ms (Views: 6.3ms)
52
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:56:43 +0800
53
+ Processing by ChinaCity::DataController#index as HTML
54
+ Completed 500 Internal Server Error in 9ms
55
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:57:06 +0800
56
+ Processing by ChinaCity::DataController#index as HTML
57
+ Completed 500 Internal Server Error in 10ms
58
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:57:25 +0800
59
+ Processing by ChinaCity::DataController#index as HTML
60
+ Completed 500 Internal Server Error in 11ms
61
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:59:11 +0800
62
+ Processing by ChinaCity::DataController#index as HTML
63
+ Completed 500 Internal Server Error in 10ms
64
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 20:59:49 +0800
65
+ Processing by ChinaCity::DataController#index as HTML
66
+ Completed 500 Internal Server Error in 9ms
67
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:01:49 +0800
68
+ Processing by ChinaCity::DataController#index as HTML
69
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.slim within layouts/china_city/application (87.5ms)
70
+ Completed 500 Internal Server Error in 109ms
71
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:02:12 +0800
72
+ Processing by ChinaCity::DataController#index as HTML
73
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.slim within layouts/china_city/application (101.6ms)
74
+ Completed 500 Internal Server Error in 128ms
75
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:02:51 +0800
76
+ Processing by ChinaCity::DataController#index as HTML
77
+ Completed 500 Internal Server Error in 6ms
78
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:05:19 +0800
79
+ Processing by ChinaCity::DataController#index as HTML
80
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb (2.5ms)
81
+ Completed 200 OK in 9ms (Views: 8.7ms)
82
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:05:29 +0800
83
+ Processing by ChinaCity::DataController#index as HTML
84
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb (1.2ms)
85
+ Completed 200 OK in 10ms (Views: 9.2ms)
86
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:09:09 +0800
87
+ Processing by ChinaCity::DataController#index as HTML
88
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb (45.1ms)
89
+ Completed 200 OK in 53ms (Views: 52.7ms)
90
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:10:34 +0800
91
+ Processing by ChinaCity::DataController#index as HTML
92
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb (82.3ms)
93
+ Completed 200 OK in 91ms (Views: 91.0ms)
94
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:31:18 +0800
95
+ Processing by ChinaCity::DataController#index as HTML
96
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb (80.5ms)
97
+ Completed 200 OK in 88ms (Views: 87.3ms)
98
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:32:21 +0800
99
+ Processing by ChinaCity::DataController#index as HTML
100
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb (73.9ms)
101
+ Completed 200 OK in 80ms (Views: 79.8ms)
102
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:38:15 +0800
103
+ Processing by ChinaCity::DataController#index as HTML
104
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb (102.9ms)
105
+ Completed 200 OK in 111ms (Views: 110.2ms)
106
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:38:48 +0800
107
+ Processing by ChinaCity::DataController#index as HTML
108
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb (75.5ms)
109
+ Completed 200 OK in 87ms (Views: 86.1ms)
110
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:46:41 +0800
111
+ Processing by ChinaCity::DataController#index as HTML
112
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (74.5ms)
113
+ Completed 500 Internal Server Error in 93ms
114
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:48:19 +0800
115
+ Processing by ChinaCity::DataController#index as HTML
116
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (67.7ms)
117
+ Completed 500 Internal Server Error in 86ms
118
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:49:02 +0800
119
+ Processing by ChinaCity::DataController#index as HTML
120
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (85.1ms)
121
+ Completed 200 OK in 287ms (Views: 286.2ms)
122
+ Started GET "/assets/china_city/application.css" for 127.0.0.1 at 2013-08-12 21:49:02 +0800
123
+ Started GET "/assets/china_city/application.js" for 127.0.0.1 at 2013-08-12 21:49:02 +0800
124
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 21:50:01 +0800
125
+ Processing by ChinaCity::DataController#index as HTML
126
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (79.5ms)
127
+ Completed 500 Internal Server Error in 100ms
128
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 22:04:24 +0800
129
+ Processing by ChinaCity::DataController#index as HTML
130
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (80.5ms)
131
+ Completed 500 Internal Server Error in 114ms
132
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 22:09:02 +0800
133
+ Processing by ChinaCity::DataController#index as HTML
134
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (71.0ms)
135
+ Completed 200 OK in 93ms (Views: 92.7ms)
136
+ Started GET "/assets/china_city/application.css" for 127.0.0.1 at 2013-08-12 22:09:02 +0800
137
+ Started GET "/assets/china_city/application.js" for 127.0.0.1 at 2013-08-12 22:09:02 +0800
138
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 22:10:12 +0800
139
+ Processing by ChinaCity::DataController#index as HTML
140
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (71.3ms)
141
+ Completed 500 Internal Server Error in 98ms
142
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 22:10:31 +0800
143
+ Processing by ChinaCity::DataController#index as HTML
144
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (78.9ms)
145
+ Completed 500 Internal Server Error in 108ms
146
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 22:13:39 +0800
147
+ Processing by ChinaCity::DataController#index as HTML
148
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (77.3ms)
149
+ Completed 500 Internal Server Error in 99ms
150
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 22:19:24 +0800
151
+ Processing by ChinaCity::DataController#index as HTML
152
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (75.1ms)
153
+ Completed 500 Internal Server Error in 106ms
154
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 22:35:22 +0800
155
+ Processing by ChinaCity::DataController#index as HTML
156
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (77.7ms)
157
+ Completed 500 Internal Server Error in 112ms
158
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 22:36:32 +0800
159
+ Processing by ChinaCity::DataController#index as HTML
160
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (81.5ms)
161
+ Completed 200 OK in 303ms (Views: 302.1ms)
162
+ Started GET "/assets/china_city/application.css" for 127.0.0.1 at 2013-08-12 22:36:32 +0800
163
+ Started GET "/assets/china_city/application.js" for 127.0.0.1 at 2013-08-12 22:36:32 +0800
164
+ Started GET "/china_city/440000" for 127.0.0.1 at 2013-08-12 22:36:33 +0800
165
+ Processing by ChinaCity::DataController#show as */*
166
+ Parameters: {"id"=>"440000"}
167
+ Completed 200 OK in 1ms (Views: 0.4ms)
168
+ Started GET "/china_city/440300" for 127.0.0.1 at 2013-08-12 22:36:33 +0800
169
+ Processing by ChinaCity::DataController#show as */*
170
+ Parameters: {"id"=>"440300"}
171
+ Completed 200 OK in 1ms (Views: 0.3ms)
172
+ Started GET "/china_city/440300" for 127.0.0.1 at 2013-08-12 22:36:33 +0800
173
+ Processing by ChinaCity::DataController#show as */*
174
+ Parameters: {"id"=>"440300"}
175
+ Completed 200 OK in 1ms (Views: 0.6ms)
176
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 22:37:17 +0800
177
+ Processing by ChinaCity::DataController#index as HTML
178
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (77.1ms)
179
+ Completed 200 OK in 95ms (Views: 94.3ms)
180
+ Started GET "/assets/china_city/application.css" for 127.0.0.1 at 2013-08-12 22:37:18 +0800
181
+ Started GET "/assets/china_city/application.js" for 127.0.0.1 at 2013-08-12 22:37:18 +0800
182
+ Started GET "/china_city/440000" for 127.0.0.1 at 2013-08-12 22:37:18 +0800
183
+ Processing by ChinaCity::DataController#show as */*
184
+ Parameters: {"id"=>"440000"}
185
+ Completed 200 OK in 1ms (Views: 0.5ms)
186
+ Started GET "/china_city/440300" for 127.0.0.1 at 2013-08-12 22:37:18 +0800
187
+ Processing by ChinaCity::DataController#show as */*
188
+ Parameters: {"id"=>"440300"}
189
+ Completed 200 OK in 0ms (Views: 0.2ms)
190
+ Started GET "/china_city/440000" for 127.0.0.1 at 2013-08-12 22:37:18 +0800
191
+ Processing by ChinaCity::DataController#show as */*
192
+ Parameters: {"id"=>"440000"}
193
+ Completed 200 OK in 1ms (Views: 0.4ms)
194
+ Started GET "/china_city/440300" for 127.0.0.1 at 2013-08-12 22:37:18 +0800
195
+ Processing by ChinaCity::DataController#show as */*
196
+ Parameters: {"id"=>"440300"}
197
+ Completed 200 OK in 0ms (Views: 0.2ms)
198
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-12 22:37:18 +0800
199
+ Processing by ChinaCity::DataController#index as HTML
200
+ Rendered /Users/saberma/Documents/china_city/app/views/china_city/data/index.html.erb within layouts/china_city/application (2.5ms)
201
+ Completed 200 OK in 4ms (Views: 3.6ms)
202
+ Started GET "/china_city/440000" for 127.0.0.1 at 2013-08-12 22:37:18 +0800
203
+ Processing by ChinaCity::DataController#show as */*
204
+ Parameters: {"id"=>"440000"}
205
+ Completed 200 OK in 1ms (Views: 0.4ms)
206
+ Started GET "/china_city/440300" for 127.0.0.1 at 2013-08-12 22:37:18 +0800
207
+ Processing by ChinaCity::DataController#show as */*
208
+ Parameters: {"id"=>"440300"}
209
+ Completed 200 OK in 0ms (Views: 0.2ms)
210
+ Started GET "/china_city/440300" for 127.0.0.1 at 2013-08-12 22:37:18 +0800
211
+ Processing by ChinaCity::DataController#show as */*
212
+ Parameters: {"id"=>"440300"}
213
+ Completed 200 OK in 1ms (Views: 0.4ms)
214
+ Processing by ChinaCity::DataController#show as HTML
215
+ Parameters: {"id"=>"000000"}
216
+ Completed 200 OK in 37ms (Views: 0.7ms)
217
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-13 21:49:00 +0800
218
+ Processing by ChinaCity::DataController#index as HTML
219
+ Completed 200 OK in 206ms (Views: 205.6ms)
220
+ Started GET "/assets/china_city/application.css" for 127.0.0.1 at 2013-08-13 21:49:00 +0800
221
+ Started GET "/assets/china_city/application.js" for 127.0.0.1 at 2013-08-13 21:49:00 +0800
222
+ Started GET "/china_city/440000" for 127.0.0.1 at 2013-08-13 21:49:00 +0800
223
+ Processing by ChinaCity::DataController#show as */*
224
+ Parameters: {"id"=>"440000"}
225
+ Completed 200 OK in 1ms (Views: 0.7ms)
226
+ Started GET "/china_city/440300" for 127.0.0.1 at 2013-08-13 21:49:00 +0800
227
+ Processing by ChinaCity::DataController#show as */*
228
+ Parameters: {"id"=>"440300"}
229
+ Completed 200 OK in 1ms (Views: 0.4ms)
230
+ Started GET "/china_city/440000" for 127.0.0.1 at 2013-08-13 21:49:00 +0800
231
+ Processing by ChinaCity::DataController#show as */*
232
+ Parameters: {"id"=>"440000"}
233
+ Completed 200 OK in 1ms (Views: 0.7ms)
234
+ Started GET "/china_city/440300" for 127.0.0.1 at 2013-08-13 21:49:00 +0800
235
+ Processing by ChinaCity::DataController#show as */*
236
+ Parameters: {"id"=>"440300"}
237
+ Completed 200 OK in 0ms (Views: 0.2ms)
238
+ Started GET "/china_city" for 127.0.0.1 at 2013-08-13 21:49:00 +0800
239
+ Processing by ChinaCity::DataController#index as HTML
240
+ Completed 200 OK in 4ms (Views: 3.8ms)
241
+ Started GET "/china_city/440000" for 127.0.0.1 at 2013-08-13 21:49:00 +0800
242
+ Processing by ChinaCity::DataController#show as */*
243
+ Parameters: {"id"=>"440000"}
244
+ Completed 200 OK in 39ms (Views: 38.6ms)
245
+ Started GET "/china_city/440300" for 127.0.0.1 at 2013-08-13 21:49:01 +0800
246
+ Processing by ChinaCity::DataController#show as */*
247
+ Parameters: {"id"=>"440300"}
248
+ Completed 200 OK in 0ms (Views: 0.2ms)
249
+ Started GET "/china_city/440300" for 127.0.0.1 at 2013-08-13 21:49:01 +0800
250
+ Processing by ChinaCity::DataController#show as */*
251
+ Parameters: {"id"=>"440300"}
252
+ Completed 200 OK in 0ms (Views: 0.2ms)
@@ -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>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</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/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes
@@ -0,0 +1 @@
1
+ <html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">[["北京市","110000"],["天津市","120000"],["河北省","130000"],["山西省","140000"],["内蒙古自治区","150000"],["辽宁省","210000"],["吉林省","220000"],["黑龙江省","230000"],["上海市","310000"],["江苏省","320000"],["浙江省","330000"],["安徽省","340000"],["福建省","350000"],["江西省","360000"],["山东省","370000"],["河南省","410000"],["湖北省","420000"],["湖南省","430000"],["广东省","440000"],["广西壮族自治区","450000"],["海南省","460000"],["重庆市","500000"],["四川省","510000"],["贵州省","520000"],["云南省","530000"],["西藏自治区","540000"],["陕西省","610000"],["甘肃省","620000"],["青海省","630000"],["宁夏回族自治区","640000"],["新疆维吾尔自治区","650000"]]</pre></body></html>
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN"><html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ Missing template china_city/data/index, china_city/application/index with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :raw, :ruby]}. Searched in:
5
+ * "/Users/saberma/Documents/china_city/spec/dummy/app/views"
6
+ * "/Users/saberma/Documents/china_city/app/views"
7
+
8
+ <hr>
9
+ <address>
10
+ WEBrick/1.3.1 (Ruby/2.0.0/2013-06-27) at
11
+ 127.0.0.1:60310
12
+ </address>
13
+
14
+
15
+ </body></html>
@@ -0,0 +1 @@
1
+ <html><head></head><body>hi</body></html>
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN"><html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ Missing template china_city/data/index, china_city/application/index with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :raw, :ruby]}. Searched in:
5
+ * "/Users/saberma/Documents/china_city/spec/dummy/app/views"
6
+ * "/Users/saberma/Documents/china_city/app/views"
7
+
8
+ <hr>
9
+ <address>
10
+ WEBrick/1.3.1 (Ruby/2.0.0/2013-06-27) at
11
+ 127.0.0.1:60348
12
+ </address>
13
+
14
+
15
+ </body></html>
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN"><html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ Missing template china_city/data/index, china_city/application/index with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :raw, :ruby]}. Searched in:
5
+ * "/Users/saberma/Documents/china_city/spec/dummy/app/views"
6
+ * "/Users/saberma/Documents/china_city/app/views"
7
+
8
+ <hr>
9
+ <address>
10
+ WEBrick/1.3.1 (Ruby/2.0.0/2013-06-27) at
11
+ 127.0.0.1:60359
12
+ </address>
13
+
14
+
15
+ </body></html>
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN"><html><head><title>Internal Server Error</title></head>
2
+ <body>
3
+ <h1>Internal Server Error</h1>
4
+ Missing template china_city/data/index, china_city/application/index with {:locale=&gt;[:en], :formats=&gt;[:html], :handlers=&gt;[:erb, :builder, :raw, :ruby]}. Searched in:
5
+ * "/Users/saberma/Documents/china_city/spec/dummy/app/views"
6
+ * "/Users/saberma/Documents/china_city/app/views"
7
+
8
+ <hr>
9
+ <address>
10
+ WEBrick/1.3.1 (Ruby/2.0.0/2013-06-27) at
11
+ 127.0.0.1:60523
12
+ </address>
13
+
14
+
15
+ </body></html>
@@ -0,0 +1,2 @@
1
+ <html><head></head><body>aa
2
+ </body></html>
@@ -0,0 +1,2 @@
1
+ <html><head></head><body>aa
2
+ </body></html>