我想要这样一个路由表:
"/search" => "search#home" # Without GET params, call action "home".
"/search?*" => "search#result" # Call "result" action when search has params.
有可能这样做吗?
我想要这样一个路由表:
"/search" => "search#home" # Without GET params, call action "home".
"/search?*" => "search#result" # Call "result" action when search has params.
有可能这样做吗?