質問編集履歴
1
viewのファイルの部分を変えました。
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -52,12 +52,14 @@
|
|
|
52
52
|
end
|
|
53
53
|
```
|
|
54
54
|
```ruby
|
|
55
|
+
app/views/end_user/users/_follow.html.erb
|
|
55
56
|
<%= form_with url: end_user_relation_path, remote: true do |f| %>
|
|
56
57
|
<%= f.hidden_field :user_id, value: @user.id %>
|
|
57
58
|
<%= f.submit 'Follow', class: 'btn btn-primary' %>
|
|
58
59
|
<% end %>
|
|
59
60
|
```
|
|
60
61
|
```ruby
|
|
62
|
+
app/views/end_user/users/_unfollow.html.erb
|
|
61
63
|
<%= form_with url: end_user_relation_path, method: :delete, remote: true do |f| %>
|
|
62
64
|
<%= f.hidden_field :user_id, value: @user.id %>
|
|
63
65
|
<%= f.submit 'Unfollow', class: 'btn btn-danger' %>
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
|
|
66
68
|
```
|
|
67
69
|
```ruby
|
|
68
|
-
|
|
70
|
+
app/views/end_user/users/_showtemplate.html.erb
|
|
69
71
|
<% if @user.id != current_user.id %>
|
|
70
72
|
<div class="follow-button">
|
|
71
73
|
<%= render 'follow_button' %>
|
|
@@ -101,8 +103,6 @@
|
|
|
101
103
|
|
|
102
104
|
### 試したこと
|
|
103
105
|
|
|
104
|
-
ここに問題に対して試したことを記載してください。
|
|
105
106
|
|
|
106
|
-
### 補足情報(FW/ツールのバージョンなど)
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
### 補足情報(FW/ツールのバージョンなど)
|