質問編集履歴

3

ルーティングの表示追加

2021/06/08 22:13

投稿

denisov
denisov

スコア6

test CHANGED
File without changes
test CHANGED
@@ -183,3 +183,97 @@
183
183
  最初はよく分からないページが表示されます。
184
184
 
185
185
  再度入り直すと、編集ページに入れてしまいます。
186
+
187
+
188
+
189
+ ルーティングの表示
190
+
191
+ ```
192
+
193
+ rails routes
194
+
195
+ Prefix Verb URI Pattern Controller#Action
196
+
197
+ new_user_session GET /users/sign_in(.:format) devise/sessions#new
198
+
199
+ user_session POST /users/sign_in(.:format) devise/sessions#create
200
+
201
+ destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
202
+
203
+ new_user_password GET /users/password/new(.:format) devise/passwords#new
204
+
205
+ edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
206
+
207
+ user_password PATCH /users/password(.:format) devise/passwords#update
208
+
209
+ PUT /users/password(.:format) devise/passwords#update
210
+
211
+ POST /users/password(.:format) devise/passwords#create
212
+
213
+ cancel_user_registration GET /users/cancel(.:format) users/registrations#cancel
214
+
215
+ new_user_registration GET /users/sign_up(.:format) users/registrations#new
216
+
217
+ edit_user_registration GET /users/edit(.:format) users/registrations#edit
218
+
219
+ user_registration PATCH /users(.:format) users/registrations#update
220
+
221
+ PUT /users(.:format) users/registrations#update
222
+
223
+ DELETE /users(.:format) users/registrations#destroy
224
+
225
+ POST /users(.:format) users/registrations#create
226
+
227
+ blogs GET /blogs(.:format) blogs#index
228
+
229
+ POST /blogs(.:format) blogs#create
230
+
231
+ new_blog GET /blogs/new(.:format) blogs#new
232
+
233
+ edit_blog GET /blogs/:id/edit(.:format) blogs#edit
234
+
235
+ blog GET /blogs/:id(.:format) blogs#show
236
+
237
+ PATCH /blogs/:id(.:format) blogs#update
238
+
239
+ PUT /blogs/:id(.:format) blogs#update
240
+
241
+ DELETE /blogs/:id(.:format) blogs#destroy
242
+
243
+ root GET / tips#index
244
+
245
+ user GET /users/:id(.:format) users#show
246
+
247
+ DELETE /users/:id(.:format) users#destroy
248
+
249
+ search_tips GET /tips/search(.:format) tips#search
250
+
251
+ tagsearch_tips GET /tips/tagsearch(.:format) tips#tagsearch
252
+
253
+ detail_search_tips GET /tips/detail_search(.:format) tips#detail_search
254
+
255
+ trend_tips GET /tips/trend(.:format) tips#trend
256
+
257
+ tip_comments POST /tips/:tip_id/comments(.:format) comments#create
258
+
259
+ tip_likes POST /tips/:tip_id/likes(.:format) likes#create
260
+
261
+ tip_like DELETE /tips/:tip_id/likes/:id(.:format) likes#destroy
262
+
263
+ tips GET /tips(.:format) tips#index
264
+
265
+ POST /tips(.:format) tips#create
266
+
267
+ new_tip GET /tips/new(.:format) tips#new
268
+
269
+ edit_tip GET /tips/:id/edit(.:format) tips#edit
270
+
271
+ tip GET /tips/:id(.:format) tips#show
272
+
273
+ PATCH /tips/:id(.:format) tips#update
274
+
275
+ PUT /tips/:id(.:format) tips#update
276
+
277
+ DELETE /tips/:id(.:format) tips#destroy
278
+
279
+ ```

2

LINK修正

2021/06/08 22:13

投稿

denisov
denisov

スコア6

test CHANGED
File without changes
test CHANGED
@@ -154,10 +154,6 @@
154
154
 
155
155
 
156
156
 
157
- 参考
158
-
159
- > https://qiita.com/teipoi/items/c9843157ab633ffa0fe3
160
-
161
157
 
162
158
 
163
159
  ユーザー編集機能につきましては以下を参考にさせていただきました。
@@ -172,11 +168,15 @@
172
168
 
173
169
 
174
170
 
175
- 追記
171
+ ###追記
176
172
 
177
173
  挙動は以下のようになります。
178
174
 
175
+
176
+
179
- https://gyazo.com/8d4321ac043f2c14eb5bc448cc73ebce
177
+ > [https://gyazo.com/8d4321ac043f2c14eb5bc448cc73ebc](https://gyazo.com/8d4321ac043f2c14eb5bc448cc73ebce)e
178
+
179
+
180
180
 
181
181
  ログインしていない状態でURLからユーザー編集ページにアクセスすると、
182
182
 

1

挙動の追記

2021/06/08 13:08

投稿

denisov
denisov

スコア6

test CHANGED
File without changes
test CHANGED
@@ -169,3 +169,17 @@
169
169
 
170
170
 
171
171
  deviseについて理解が甘いので、根本的に間違っているかもしれませんが、ご意見いただけるとありがたいです。
172
+
173
+
174
+
175
+ 追記
176
+
177
+ 挙動は以下のようになります。
178
+
179
+ https://gyazo.com/8d4321ac043f2c14eb5bc448cc73ebce
180
+
181
+ ログインしていない状態でURLからユーザー編集ページにアクセスすると、
182
+
183
+ 最初はよく分からないページが表示されます。
184
+
185
+ 再度入り直すと、編集ページに入れてしまいます。