这里是一段 rails app 的日志:
Started GET "/programs.afasdfasdf" for ::1 at 2023-05-06 14:02:28 +0800
Processing by ProgramsController#index as */*
routes.rb
resources :programs, only: [:index], do
end
问题: 怎样让 Rails 不忽略“.afasdfasdf”部分,直接报路由错误,Rails 里有可以配置的地方么