Is it possible to use a “front controller” in Rails?
-
03-07-2019 - |
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?
Solution
checkout the rails cast on catchall routes, I think this is what you are after:
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