Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Spring MVC 中,Dispatcher servlet 用作“前端控制器”来处理所有应用程序请求并适当地路由它们。
是否可以在 Rails 中使用这种方法,或者是否需要为每种类型的操作编写单独的控制器,而无需“交通警察”(前端控制器)指导流程?
检查所有路线上的铁轨,我认为这就是您所追求的:
http://railscasts.com/episodes/46-catch-all-route
如果您想要对路由进行更细粒度的控制,也许 Merb 更适合您。