Rails 请教各位大佬如何来整理自己的路由表。。比如一些没有用到的路由。。

matrixbirds · December 22, 2016 · Last by flemon1986 replied at December 23, 2016 · 2437 hits

场景:因为需求比较混乱以及开发时候仓促没有去删掉旧的路由表。。

(有没有一种 linter,在每次修改 controller 代码的时候 warn 一下?)

吓我一跳,还以为是路由器的那个表😅

我也以为是网络路由表 😂

#3 楼 @kgen 泥垢。。qwq 话题在 rails 下面。。

#4 楼 @matrixbirds 我可能是职业病的受害者。。。

用 codecoverage 测试自己哪条路没测试,需要就加,不需要就删

matrixbirds closed this topic. 20 Feb 22:28
You need to Sign in before reply, if you don't have an account, please Sign up first.