Two of my controllers need access to same method. I instantly put them in ApplicationController and the problem was solved.
Now I’m thinking my ApplicationController is getting polluted because there are many cases in which a method is needed by two or three controllers. What are the other ways to handle such cases.
One case could be to have a base controller and then to extend these controllers so that they get the common methods. Well I don’t like it that much.