我有一個名爲five9_lists_controller.rb
的控制器。Five9ListsController不是Rails支持的控制器名稱
我想說這項工作很好,當它是一個單一的命名慣例,但我把它改爲複數,我的測試,現在拋出這個錯誤:
/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:239:in
`default_controller_and_action': 'Five9ListsController' is not a supported controller
name. This can lead to potential routing problems. See
http://guides.rubyonrails.org/routing.html#specifying-a-controller-to-use (ArgumentError)
爲什麼是無效的控制器名稱?