質問編集履歴

1

ルーティングの情報を足してみました

2019/09/04 04:23

投稿

sakana-suki
sakana-suki

スコア14

test CHANGED
File without changes
test CHANGED
@@ -186,7 +186,89 @@
186
186
 
187
187
 
188
188
 
189
-
189
+ ルーティングはこんな感じです
190
+
191
+ ```
192
+
193
+ Prefix Verb URI Pattern Controller#Action
194
+
195
+ new_user_session GET /users/sign_in(.:format) users/sessions#new
196
+
197
+ user_session POST /users/sign_in(.:format) users/sessions#create
198
+
199
+ destroy_user_session DELETE /users/sign_out(.:format) users/sessions#destroy
200
+
201
+ user_facebook_omniauth_authorize GET|POST /users/auth/facebook(.:format) users/omniauth_callbacks#passthru
202
+
203
+ user_facebook_omniauth_callback GET|POST /users/auth/facebook/callback(.:format) users/omniauth_callbacks#facebook
204
+
205
+ new_user_password GET /users/password/new(.:format) devise/passwords#new
206
+
207
+ edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
208
+
209
+ user_password PATCH /users/password(.:format) devise/passwords#update
210
+
211
+ PUT /users/password(.:format) devise/passwords#update
212
+
213
+ POST /users/password(.:format) devise/passwords#create
214
+
215
+ cancel_user_registration GET /users/cancel(.:format) users/registrations#cancel
216
+
217
+ new_user_registration GET /users/sign_up(.:format) users/registrations#new
218
+
219
+ edit_user_registration GET /users/edit(.:format) users/registrations#edit
220
+
221
+ user_registration PATCH /users(.:format) users/registrations#update
222
+
223
+ PUT /users(.:format) users/registrations#update
224
+
225
+ DELETE /users(.:format) users/registrations#destroy
226
+
227
+ POST /users(.:format) users/registrations#create
228
+
229
+ sign_in GET /sign_in(.:format) users/sessions#new
230
+
231
+ sign_out GET /sign_out(.:format) users/sessions#destroy
232
+
233
+ root GET / posts#index
234
+
235
+ user GET /users/:id(.:format) users#show
236
+
237
+ user_index GET /users/index(.:format) users#index
238
+
239
+ post_photos POST /posts/:post_id/photos(.:format) photos#create
240
+
241
+ post_likes POST /posts/:post_id/likes(.:format) likes#create
242
+
243
+ post_like DELETE /posts/:post_id/likes/:id(.:format) likes#destroy
244
+
245
+ post_comments POST /posts/:post_id/comments(.:format) comments#create
246
+
247
+ post_comment DELETE /posts/:post_id/comments/:id(.:format) comments#destroy
248
+
249
+ posts GET /posts(.:format) posts#index
250
+
251
+ POST /posts(.:format) posts#create
252
+
253
+ new_post GET /posts/new(.:format) posts#new
254
+
255
+ post GET /posts/:id(.:format) posts#show
256
+
257
+ DELETE /posts/:id(.:format) posts#destroy
258
+
259
+ rails_service_blob GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs#show
260
+
261
+ rails_blob_representation GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show
262
+
263
+ rails_disk_service GET /rails/active_storage/disk/:encoded_key/*filename(.:format) active_storage/disk#show
264
+
265
+ update_rails_disk_service PUT /rails/active_storage/disk/:encoded_token(.:format) active_storage/disk#update
266
+
267
+ rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format) active_storage/direct_uploads#create
268
+
269
+
270
+
271
+ ```
190
272
 
191
273
  ### 補足情報(FW/ツールのバージョンなど)
192
274