質問編集履歴

1

エラー内容の修正

2016/12/01 09:27

投稿

ryuji.morimoto
ryuji.morimoto

スコア10

test CHANGED
File without changes
test CHANGED
@@ -29,3 +29,455 @@
29
29
 
30
30
 
31
31
  よろしくお願いします。
32
+
33
+
34
+
35
+
36
+
37
+ ーーーーーーーーーーーーーーーーーーーーーーーーーー
38
+
39
+ バージョン情報
40
+
41
+ Ruby 2.2.5
42
+
43
+ Rails 5.0.0.1
44
+
45
+
46
+
47
+ エラー内容表示
48
+
49
+ コマンド >rails s
50
+
51
+ localhost:3000を開くと、下記のようなエラーが表示されます。
52
+
53
+ ```C:\RubyWork\gatebook>rails s
54
+
55
+ Your bundle is locked to rails (5.0.0.1), but that version could not be found in
56
+
57
+ any of the sources listed in your Gemfile. If you haven't changed sources, that
58
+
59
+ means the author of rails (5.0.0.1) has removed it. You'll need to update your
60
+
61
+ bundle to a different version of rails (5.0.0.1) that hasn't been removed in ord
62
+
63
+ er to install.
64
+
65
+ Run `bundle install` to install missing gems.
66
+
67
+
68
+
69
+ C:\RubyWork\gatebook> gem install rails --version="~> 4.2.3" --no-ri --no-rdoc
70
+
71
+ Successfully installed rails-4.2.7.1
72
+
73
+ 1 gem installed
74
+
75
+
76
+
77
+ C:\RubyWork\gatebook>rails -v
78
+
79
+ Could not find gem 'rails (>= 5.0.0.1, ~> 5.0.0) x64-mingw32' in any of the gem
80
+
81
+ sources listed in your Gemfile or available on this machine.
82
+
83
+ Run `bundle install` to install missing gems.
84
+
85
+
86
+
87
+ C:\RubyWork\gatebook>bundle install
88
+
89
+ Fetching gem metadata from https://rubygems.org/..........
90
+
91
+ Fetching version metadata from https://rubygems.org/..
92
+
93
+ Fetching dependency metadata from https://rubygems.org/.
94
+
95
+ Resolving dependencies...
96
+
97
+ Bundler could not find compatible versions for gem "activemodel":
98
+
99
+ In snapshot (Gemfile.lock):
100
+
101
+ activemodel (= 4.2.7.1)
102
+
103
+
104
+
105
+ In Gemfile:
106
+
107
+ rails (>= 5.0.0.1, ~> 5.0.0) x64-mingw32 was resolved to 5.0.0.1, which
108
+
109
+ depends on
110
+
111
+ activemodel (= 5.0.0.1) x64-mingw32
112
+
113
+
114
+
115
+ rails (>= 5.0.0.1, ~> 5.0.0) x64-mingw32 was resolved to 5.0.0.1, which
116
+
117
+ depends on
118
+
119
+ activemodel (= 5.0.0.1) x64-mingw32
120
+
121
+
122
+
123
+ web-console x64-mingw32 was resolved to 3.4.0, which depends on
124
+
125
+ activemodel (>= 5.0) x64-mingw32
126
+
127
+
128
+
129
+ Running `bundle update` will rebuild your snapshot from scratch, using only
130
+
131
+ the gems in your Gemfile, which may resolve the conflict.
132
+
133
+
134
+
135
+ C:\RubyWork\gatebook>rails -v
136
+
137
+ Could not find gem 'rails (>= 5.0.0.1, ~> 5.0.0) x64-mingw32' in any of the gem
138
+
139
+ sources listed in your Gemfile or available on this machine.
140
+
141
+ Run `bundle install` to install missing gems.
142
+
143
+
144
+
145
+ C:\RubyWork\gatebook>bundle update
146
+
147
+ Fetching gem metadata from https://rubygems.org/..........
148
+
149
+ Fetching version metadata from https://rubygems.org/..
150
+
151
+ Fetching dependency metadata from https://rubygems.org/.
152
+
153
+ Resolving dependencies...
154
+
155
+ Using rake 11.3.0
156
+
157
+ Using concurrent-ruby 1.0.2
158
+
159
+ Using i18n 0.7.0
160
+
161
+ Using minitest 5.10.0
162
+
163
+ Using thread_safe 0.3.5
164
+
165
+ Using builder 3.2.2
166
+
167
+ Using erubis 2.7.0
168
+
169
+ Using mini_portile2 2.1.0
170
+
171
+ Using rack 2.0.1
172
+
173
+ Using nio4r 1.2.1
174
+
175
+ Using websocket-extensions 0.1.2
176
+
177
+ Using mime-types-data 3.2016.0521
178
+
179
+ Using arel 7.1.4
180
+
181
+ Using bundler 1.13.6
182
+
183
+ Using coffee-script-source 1.11.1
184
+
185
+ Using execjs 2.7.0
186
+
187
+ Using method_source 0.8.2
188
+
189
+ Using thor 0.19.4
190
+
191
+ Using debug_inspector 0.0.2
192
+
193
+ Using multi_json 1.12.1
194
+
195
+ Using json 2.0.2
196
+
197
+ Using puma 3.6.2
198
+
199
+ Using sass 3.4.22
200
+
201
+ Using tilt 2.0.5
202
+
203
+ Using temple 0.7.7
204
+
205
+ Using sqlite3 1.3.12
206
+
207
+ Using turbolinks-source 5.0.0
208
+
209
+ Using tzinfo 1.2.2
210
+
211
+ Using nokogiri 1.6.8.1
212
+
213
+ Using rack-test 0.6.3
214
+
215
+ Using sprockets 3.7.0
216
+
217
+ Using websocket-driver 0.6.4
218
+
219
+ Using mime-types 3.1
220
+
221
+ Using coffee-script 2.4.1
222
+
223
+ Using uglifier 2.7.1
224
+
225
+ Using slim 3.0.0
226
+
227
+ Using turbolinks 5.0.1
228
+
229
+ Using activesupport 5.0.0.1 (was 4.2.7.1)
230
+
231
+ Using tzinfo-data 1.2016.10
232
+
233
+ Using loofah 2.0.3
234
+
235
+ Using mail 2.6.4
236
+
237
+ Using rails-dom-testing 2.0.1
238
+
239
+ Using globalid 0.3.7
240
+
241
+ Using activemodel 5.0.0.1 (was 4.2.7.1)
242
+
243
+ Using jbuilder 2.6.1
244
+
245
+ Using rails-html-sanitizer 1.0.3
246
+
247
+ Using activejob 5.0.0.1 (was 4.2.7.1)
248
+
249
+ Using activerecord 5.0.0.1 (was 4.2.7.1)
250
+
251
+ Using actionview 5.0.0.1 (was 4.2.7.1)
252
+
253
+ Using actionpack 5.0.0.1 (was 4.2.7.1)
254
+
255
+ Using actioncable 5.0.0.1 (was 4.2.7.1)
256
+
257
+ Using actionmailer 5.0.0.1 (was 4.2.7.1)
258
+
259
+ Using railties 5.0.0.1 (was 4.2.7.1)
260
+
261
+ Using sprockets-rails 3.2.0
262
+
263
+ Using coffee-rails 4.2.1
264
+
265
+ Using jquery-rails 4.2.1
266
+
267
+ Using web-console 3.4.0
268
+
269
+ Installing rails 5.0.0.1 (was 4.2.7.1)
270
+
271
+ Using sass-rails 5.0.6
272
+
273
+ Bundle updated!
274
+
275
+
276
+
277
+ C:\RubyWork\gatebook>
278
+
279
+ C:\RubyWork\gatebook>rails -v
280
+
281
+ Rails 5.0.0.1
282
+
283
+
284
+
285
+ C:\RubyWork\gatebook>rails s
286
+
287
+ => Booting Puma
288
+
289
+ => Rails 5.0.0.1 application starting in development on http://localhost:3000
290
+
291
+ => Run `rails server -h` for more startup options
292
+
293
+ *** SIGUSR2 not implemented, signal based restart unavailable!
294
+
295
+ *** SIGUSR1 not implemented, signal based restart unavailable!
296
+
297
+ *** SIGHUP not implemented, signal based logs reopening unavailable!
298
+
299
+ Puma starting in single mode...
300
+
301
+ * Version 3.6.2 (ruby 2.2.5-p319), codename: Sleepy Sunday Serenity
302
+
303
+ * Min threads: 5, max threads: 5
304
+
305
+ * Environment: development
306
+
307
+ * Listening on tcp://localhost:3000
308
+
309
+ Use Ctrl-C to stop
310
+
311
+ Started GET "/" for ::1 at 2016-12-01 18:22:09 +0900
312
+
313
+ Started GET "/" for ::1 at 2016-12-01 18:22:10 +0900
314
+
315
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM
316
+
317
+ "schema_migrations"
318
+
319
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM
320
+
321
+ "schema_migrations"
322
+
323
+ Processing by HomeController#top as HTML
324
+
325
+ Processing by HomeController#top as HTML
326
+
327
+ Rendering home/top.html.erb within layouts/application
328
+
329
+ Rendering home/top.html.erb within layouts/application
330
+
331
+ Rendered home/top.html.erb within layouts/application (5.0ms)
332
+
333
+ Rendered home/top.html.erb within layouts/application (2.5ms)
334
+
335
+ Completed 500 Internal Server Error in 398ms (ActiveRecord: 0.0ms)
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+ ActionView::Template::Error (Permission denied @ utime_failed - C:/RubyWork/gate
344
+
345
+ book/tmp/cache/assets/sprockets/v3.0/2B/2BLEsUhwGIsUvJQ37HFD_Hf9qHpr1OHl2YeZ8X16
346
+
347
+ uzA.cache):
348
+
349
+ 3: <head>
350
+
351
+ 4: <title>Gatebook</title>
352
+
353
+ 5: <%= csrf_meta_tags %>
354
+
355
+ 6: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolin
356
+
357
+ ks-track' => true %>
358
+
359
+ 7: <%= javascript_include_tag 'application', 'data-turbolinks-track' => t
360
+
361
+ rue %>
362
+
363
+ 8: <style>/* 共通レイアウト ================================ */
364
+
365
+ 9: body {
366
+
367
+
368
+
369
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html
370
+
371
+ _erb__2079029030_63889060'
372
+
373
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
374
+
375
+ _dispatch/middleware/templates/rescues/template_error.html.erb within rescues/la
376
+
377
+ yout
378
+
379
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
380
+
381
+ _dispatch/middleware/templates/rescues/_source.html.erb
382
+
383
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
384
+
385
+ dispatch/middleware/templates/rescues/_source.html.erb (7.5ms)
386
+
387
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
388
+
389
+ _dispatch/middleware/templates/rescues/_trace.html.erb
390
+
391
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
392
+
393
+ dispatch/middleware/templates/rescues/_trace.html.erb (5.0ms)
394
+
395
+ Completed 500 Internal Server Error in 2170ms (ActiveRecord: 0.0ms)
396
+
397
+
398
+
399
+
400
+
401
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
402
+
403
+ _dispatch/middleware/templates/rescues/_request_and_response.html.erb
404
+
405
+
406
+
407
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
408
+
409
+ dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.0ms)
410
+
411
+ ActionView::Template::Error (TypeError: オブジェクトでサポートされていないプロパ
412
+
413
+ ティまたはメソッドです。):
414
+
415
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
416
+
417
+ dispatch/middleware/templates/rescues/template_error.html.erb within rescues/lay
418
+
419
+ out (1052.5ms)
420
+
421
+ 3: <head>
422
+
423
+ 4: <title>Gatebook</title>
424
+
425
+ 5: <%= csrf_meta_tags %>
426
+
427
+ 6: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolin
428
+
429
+ ks-track' => true %>
430
+
431
+ 7: <%= javascript_include_tag 'application', 'data-turbolinks-track' => t
432
+
433
+ rue %>
434
+
435
+ 8: <style>/* 共通レイアウト ================================ */
436
+
437
+ 9: body {
438
+
439
+
440
+
441
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html
442
+
443
+ _erb__2079029030_63889060'
444
+
445
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
446
+
447
+ _dispatch/middleware/templates/rescues/template_error.html.erb within rescues/la
448
+
449
+ yout
450
+
451
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
452
+
453
+ _dispatch/middleware/templates/rescues/_source.html.erb
454
+
455
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
456
+
457
+ dispatch/middleware/templates/rescues/_source.html.erb (7.5ms)
458
+
459
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
460
+
461
+ _dispatch/middleware/templates/rescues/_trace.html.erb
462
+
463
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
464
+
465
+ dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
466
+
467
+ Rendering C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action
468
+
469
+ _dispatch/middleware/templates/rescues/_request_and_response.html.erb
470
+
471
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
472
+
473
+ dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.5ms)
474
+
475
+ Rendered C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-5.0.0.1/lib/action_
476
+
477
+ dispatch/middleware/templates/rescues/template_error.html.erb within rescues/lay
478
+
479
+ out (942.5ms)
480
+
481
+
482
+
483
+ ```