質問編集履歴
2
添付の画像とindex.htmlを修正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
現在の画面
|
4
4
|
|
5
|
-
[画面](https://gyazo.com/
|
5
|
+
[画面](https://gyazo.com/3e44526c4ef2c9263261dca0a13bf5a1)
|
6
|
-
|
6
|
+
|
7
|
-
非ログイン時にprototypeのタイトルをクリックすると
|
7
|
+
非ログイン時にprototype(下から2行目のaaaaaaやaaaです、わかりにくてすいません)のタイトルをクリックすると
|
8
8
|
|
9
9
|
その詳細ページに移動したい
|
10
10
|
|
@@ -246,7 +246,7 @@
|
|
246
246
|
|
247
247
|
<%= "こんにちは" %>
|
248
248
|
|
249
|
-
<%= link_to "#{current_user.name}", user_path(current
|
249
|
+
<%= link_to "#{current_user.name}", user_path(current.user), class: :greeting__link %>
|
250
250
|
|
251
251
|
<%# <%= link_to "#{current_user.name}", user_registration_path, class: :greeting__link %>
|
252
252
|
|
@@ -280,6 +280,8 @@
|
|
280
280
|
|
281
281
|
</main>
|
282
282
|
|
283
|
+
|
284
|
+
|
283
285
|
```
|
284
286
|
|
285
287
|
app/views/users/show.html.erb
|
1
codeの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -589,3 +589,37 @@
|
|
589
589
|
end
|
590
590
|
|
591
591
|
```
|
592
|
+
|
593
|
+
app/views/prototypes/_prototype.html.erb
|
594
|
+
|
595
|
+
```html
|
596
|
+
|
597
|
+
<div class="card">
|
598
|
+
|
599
|
+
<%= image_tag prototype.image, class: 'card__img' if prototype.image.attached? %>
|
600
|
+
|
601
|
+
<div class="card__body">
|
602
|
+
|
603
|
+
<%= link_to prototype.catct_copy, prototype_path(prototype.id), method: :get, class: :card__title%>
|
604
|
+
|
605
|
+
<p class="card__summary">
|
606
|
+
|
607
|
+
<%= prototype.concept %>
|
608
|
+
|
609
|
+
</p>
|
610
|
+
|
611
|
+
<% if current_user %>
|
612
|
+
|
613
|
+
<%= link_to "by#{prototype.user.name}", user_path(current_user), method: :get, class: :card__user %>
|
614
|
+
|
615
|
+
<% end %>
|
616
|
+
|
617
|
+
</div>
|
618
|
+
|
619
|
+
</div>
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
```
|