質問編集履歴

2

書式の改善

2021/04/11 13:16

投稿

popi06
popi06

スコア3

test CHANGED
File without changes
test CHANGED
@@ -92,6 +92,8 @@
92
92
 
93
93
  ```
94
94
 
95
+ ```ここに言語を入力
96
+
95
97
  /app/controllers/circles_controller.rb
96
98
 
97
99
 
@@ -322,6 +324,8 @@
322
324
 
323
325
 
324
326
 
327
+ ```
328
+
325
329
 
326
330
 
327
331
  ```

1

コードの詳細

2021/04/11 13:16

投稿

popi06
popi06

スコア3

test CHANGED
File without changes
test CHANGED
@@ -74,6 +74,24 @@
74
74
 
75
75
  ```
76
76
 
77
+ ```
78
+
79
+ show.html.erb
80
+
81
+
82
+
83
+ <% if @circle.owner? %>
84
+
85
+ <%= link_to "編集", edit_circle_path(@circle), class:"btn btn-warning btn-lg" %>
86
+
87
+ <%= link_to "削除", circle_path, method: :delete, class:"btn btn-warning btn-lg",
88
+
89
+ data: { confirm: "(確認)サークルが削除されます。" } %>
90
+
91
+ <% end %>
92
+
93
+ ```
94
+
77
95
  /app/controllers/circles_controller.rb
78
96
 
79
97