How do I share code between controllers of different models?
In the action of the super controller, I want to find out which controller (route) was called, and use this route name to load the corresponding model and use this model to query the database to go to the view.
I can easily do this in Ruby on Rails, does MVC do such a thing?
Maher source
share