Like, lets say I have the model called: Vehicle.
Is there any command such as Vehicle.controller that would return :vehicles_controller or "vehicles_controller" ?
Like, lets say I have the model called: Vehicle . Is there any command
Share
Not that I’m aware of, but its easy to create such a helper:
Better question is why do you want it? Sounds like a bit of a code smell—there aren’t a lot of good reasons for your model to know anything about your controllers.