質問編集履歴
1
エラーメッセージが表示されてなかったので、追加いたしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,9 +16,43 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
+
|
20
|
+
|
21
|
+
NoMethodError in Portfolio#show
|
22
|
+
|
23
|
+
Showing /home/ec2-user/environment/portfolio/app/views/portfolio/show.html.erb where line #6 raised:
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
undefined method `title' for nil:NilClass
|
28
|
+
|
29
|
+
|
30
|
+
|
19
|
-
```
|
31
|
+
```
|
32
|
+
|
33
|
+
|
34
|
+
|
20
|
-
|
35
|
+
ActionView::Template::Error (undefined method `title' for nil:NilClass):
|
36
|
+
|
37
|
+
3:
|
38
|
+
|
39
|
+
4: <div class="slick1">
|
40
|
+
|
41
|
+
5:
|
42
|
+
|
21
|
-
|
43
|
+
6: <p><%= @works.title %></p>
|
44
|
+
|
45
|
+
7: <p><%= @works.detail %></p>
|
46
|
+
|
47
|
+
8:
|
48
|
+
|
49
|
+
9: <img style="background-image: url_for(works.images);"></img>
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
app/views/portfolio/show.html.erb:6:in `_app_views_portfolio_show_html_erb__1563797991912808332_70127707796960'
|
54
|
+
|
55
|
+
|
22
56
|
|
23
57
|
```
|
24
58
|
|
@@ -142,14 +176,14 @@
|
|
142
176
|
|
143
177
|
|
144
178
|
|
179
|
+
<div class="slick1">
|
180
|
+
|
145
181
|
|
146
182
|
|
147
183
|
<p><%= @works.title %></p>
|
148
184
|
|
149
185
|
<p><%= @works.detail %></p>
|
150
186
|
|
151
|
-
</main>
|
152
|
-
|
153
187
|
```
|
154
188
|
|
155
189
|
|