标签: ruby-on-rails module routes
我想在包含模块时定义新路由,我尝试以下代码,但它不起作用:
included do ActionDispatch::Routing::RouteSet.draw do get "test" => "public#test" end end
请纠正我,谢谢!