Question

In Spring MVC a Dispatcher servlet is used as a "front controller" to handle all of the application requests and route them appropriately.

Is it possible to use such an approach in Rails or is it required to write a separate controller for each type of action without having a "traffic cop" (front controller) directing the flow?

Was it helpful?

Solution

checkout the rails cast on catchall routes, I think this is what you are after:

http://railscasts.com/episodes/46-catch-all-route

OTHER TIPS

Maybe Merb is more what you're after if you want more fine grained control over routing.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top