小编Vio*_*eta的帖子

从 Rails 6 中删除 ActiveStorage 路由

我从 ActionStorage 中删除了config/application.rb但我在运行时看到了这些路由rake routes | less

我没有设置我的/config/routes.rb...

                   Prefix Verb URI Pattern                                                                              Controller#Action
       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
Run Code Online (Sandbox Code Playgroud)

有谁知道我如何删除这些?

ruby-on-rails ruby-on-rails-6

7
推荐指数
3
解决办法
3460
查看次数

标签 统计

ruby-on-rails ×1

ruby-on-rails-6 ×1