I had to search a little more to get the solution.
Answering this question myself and linking it to an existing SO question.
题
I have been DRYing up the code for a Rails project. Is it possible to find the index, new and edit path from the controller name or from the object/collection?
解决方案
I had to search a little more to get the solution.
Answering this question myself and linking it to an existing SO question.