0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

rails ルーティング確認

Last updated at Posted at 2021-07-20

rails ルーティング 

アプリケーションに設定されているルーティングを調べることができます。

ターミナル

$ rake routes
$ rails routes  # またはこちらのコマンド

下の図の通り出ていれば、設定の確認が出来ます。

ターミナル
              
                   Prefix Verb URI Pattern                                                                              Controller#Action
                     root GET  /                                                                                        tweets#index
                   tweets GET  /tweets(.:format)                                                                        tweets#index
                          POST /tweets(.:format)                                                                        tweets#create
                new_tweet GET  /tweets/new(.:format)                                                                    tweets#new
       rails_service_blob GET  /rails/active_storage/blobs/:signed_id/*filename(.:format)                               active_storage/blobs#show
rails_blob_representation GET  /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show
       rails_disk_service GET  /rails/active_storage/disk/:encoded_key/*filename(.:format)                              active_storage/disk#show
update_rails_disk_service PUT  /rails/active_storage/disk/:encoded_token(.:format)                                      active_storage/disk#update
     rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format)                                           active_storage/direct_uploads#create

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?