这个 Gem 不错,Sextant, https://github.com/schneems/sextant
加上这个 Gem 以后,可以通过 http://localhost:3000/rails/routes
来查看 Routes 了,比较方便,试试看
额。。不错,嵌套一多再加上 member collection 什么的,经常记不住,都得 rake routes | grep 一下,这个确实蛮方便
用处不大呀
我安装后有错误:
/Users/shaneniu/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.4/lib/active_support/dependencies.rb:240:in `require': cannot load such file -- rails/application/route_inspector (LoadError)
看了下 railties-3.1.4/lib 是没有 rails/application/route_inspector,只有 rails/application/route_reloader。