質問編集履歴
2
文章を編集しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -252,7 +252,7 @@
|
|
252
252
|
|
253
253
|
<li>
|
254
254
|
|
255
|
-
<%= link_to destroy_user_session_path do %>
|
255
|
+
<%= link_to destroy_user_session_path, method: :delete do %>
|
256
256
|
|
257
257
|
<i class="fa fa-log-out">logout</i>
|
258
258
|
|
1
文章を編集しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
10
|
28
28
|
|
29
|
-
11 def
|
29
|
+
11 def edit
|
30
30
|
|
31
31
|
```
|
32
32
|
|
@@ -124,7 +124,27 @@
|
|
124
124
|
|
125
125
|
end
|
126
126
|
|
127
|
+
|
128
|
+
|
127
|
-
|
129
|
+
def new
|
130
|
+
|
131
|
+
@user = User.new
|
132
|
+
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
def create
|
138
|
+
|
139
|
+
user = User.new(user_params)
|
140
|
+
|
141
|
+
user.save
|
142
|
+
|
143
|
+
redirect_to '/books/:id'
|
144
|
+
|
145
|
+
end
|
146
|
+
|
147
|
+
|
128
148
|
|
129
149
|
def show
|
130
150
|
|
@@ -132,26 +152,6 @@
|
|
132
152
|
|
133
153
|
end
|
134
154
|
|
135
|
-
|
136
|
-
|
137
|
-
def new
|
138
|
-
|
139
|
-
@user = User.new
|
140
|
-
|
141
|
-
end
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
def create
|
146
|
-
|
147
|
-
user = User.new(user_params)
|
148
|
-
|
149
|
-
user.save
|
150
|
-
|
151
|
-
redirect_to '/books/:id'
|
152
|
-
|
153
|
-
end
|
154
|
-
|
155
155
|
|
156
156
|
|
157
157
|
def edit
|