MakeM
MakeM

Reputation: 107

Where should I put CONTROLLER helper methods?

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

Answers (1)

Skilldrick
Skilldrick

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

Related Questions