我从config/application.rb
中移除了ActionStorage,但是当我运行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
请问有人知道我该如何移除这些东西吗?
require 'action_mailbox/engine'
以删除这些路由。 - cyrilchampier