新手问题 通配路由过期 warning

netqyq · 2016年07月15日 · 最后由 hging 回复于 2016年07月15日 · 2252 次阅读

Warning:

DEPRECATION WARNING: Using a dynamic :controller segment in a route is deprecated and will be removed in Rails 5.1. (called from block
DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.1. (called from block in

路由配置:

match ':controller(/:action(/:id(.:format)))', :via => [:get, :post]

请问如何处理?或者为什么会这样,其背后的道理是什么,有什么好的处理方式吗?

需要 登录 后方可回复, 如果你还没有账号请 注册新账号