質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,9 +20,9 @@
|
|
20
20
|
|
21
21
|
N+1 Query method call stack
|
22
22
|
|
23
|
-
/Users/kita/Documents/
|
23
|
+
/Users/kita/Documents/ponta-ver3.0.0/app/views/items/show.html.erb:115:in `block in _app_views_items_show_html_erb__4048271209300901525_70100707361500'
|
24
24
|
|
25
|
-
/Users/kita/Documents/
|
25
|
+
/Users/kita/Documents/ponta-ver3.0.0/app/views/items/show.html.erb:109:in `_app_views_items_show_html_erb__4048271209300901525_70100707361500'
|
26
26
|
|
27
27
|
|
28
28
|
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,4 +102,24 @@
|
|
102
102
|
|
103
103
|
end
|
104
104
|
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
#html.erb
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
#115行目
|
114
|
+
|
115
|
+
<% if comment.user.profile.picture_1.present? %>
|
116
|
+
|
117
|
+
<%= link_to image_tag(comment.user.profile.picture_1_url, width: 90, class:"img-circle img-responsive" ) , profile_path(comment.user_id) %>
|
118
|
+
|
119
|
+
<% else%>
|
120
|
+
|
121
|
+
<%= link_to image_tag('opps.jpg', class:"img-circle img-responsive"), profile_path(comment.user_id)%>
|
122
|
+
|
123
|
+
<% end%>
|
124
|
+
|
105
125
|
```
|