Reputation: 107
I know that "helpers" are usually for views/templates. But say I have a helper method that I want to call from different controllers. Where should this file go?
I was thinking of creating a helper module in the "models" folder but I'd like to know if there's a "correct" way to do this.
Upvotes: 4
Views: 936
Reputation: 70889
Any method you put in ApplicationController
will be inherited by your other controllers (as long as it's not private
of course).
Upvotes: 3