質問編集履歴
1
localhost:3000のブラウザ上にて出てくるエラーメッセージを全て記載しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,13 +22,27 @@
|
|
22
22
|
|
23
23
|
### 発生している問題・エラーメッセージ
|
24
24
|
|
25
|
-
▼localhost:3000のブラウザ上にて
|
25
|
+
▼localhost:3000のブラウザ上にて(こちらの16番目のラインにてエラー発生)
|
26
26
|
|
27
27
|
```
|
28
28
|
|
29
29
|
NoMethodError in Posts#index
|
30
30
|
|
31
31
|
undefined method `image_name' for nil:NilClass
|
32
|
+
|
33
|
+
Extracted source (around line #16):
|
34
|
+
|
35
|
+
14<div class="time_line_body_header">
|
36
|
+
|
37
|
+
15 <div class="user_time_line_image">
|
38
|
+
|
39
|
+
16 <img src="<%= "/user_icon_images/#{post.user.image_name}" %>">
|
40
|
+
|
41
|
+
17 </div>
|
42
|
+
|
43
|
+
18 <div class="user_name">
|
44
|
+
|
45
|
+
19 <%= link_to(post.user.nickname, "#") %>
|
32
46
|
|
33
47
|
```
|
34
48
|
|