【发布时间】:2016-05-26 13:32:00
【问题描述】:
我需要在到不同控制器的路由上匹配不同的模式。
示例:将http://localhost:4000/<_ANY_THING_> 匹配到PageController@index,我这样做:
get "/:page", PageController, :show
现在,我需要添加仅与以下模式匹配的另一条路线:
http://localhost:4000/@<_any_thing_>
这应该与UserController@profile 匹配
我该怎么做?
【问题讨论】: